Browse Source

Provide the app's version for rendering.

master
flabbergast 8 years ago
parent
commit
c88ec018ec
  1. 10
      app.js
  2. 3
      views/index.jade

10
app.js

@ -1,6 +1,6 @@
/**
* Node-Serial
* Node-LLAP
* Author: flabbergast
* based on node-leds by Stephen Braitsch (https://github.com/braitsch/node-leds)
*/
@ -12,6 +12,14 @@ var express = require('express')
var app = express();
/*
* have the current version number available
*/
app.locals({
app_version: "v0.1.0",
app_title: "node-LLAP"
});
app.configure(function(){
app.set('port', 8080);
app.set('views', __dirname + '/views');

3
views/index.jade

@ -32,7 +32,8 @@ block right-column
block footer
p <strong>Server info:</strong>&nbsp;
| #{process.title}:[#{process.version}]
| serial-port:[
| #{app_title}:[#{app_version}]
| listening on serial port:[
span#serial-port-elt
|]

Loading…
Cancel
Save