Add version number to the home page

This commit is contained in:
Gaël Métais
2014-11-20 18:07:50 +01:00
parent 7af3bc519a
commit 13787708e9
5 changed files with 13 additions and 3 deletions
+2 -1
View File
@@ -6,7 +6,7 @@ var async = require('async');
var fs = require ('fs');
var strReplace = require('../lib/strReplace');
var indexController = function(req, res, googleAnalyticsId) {
var indexController = function(req, res, googleAnalyticsId, version) {
'use strict';
async.parallel({
@@ -18,6 +18,7 @@ var indexController = function(req, res, googleAnalyticsId) {
}, function(err, results) {
var html = results.htmlTemplate;
html = strReplace(html, '%%GA_ID%%', googleAnalyticsId);
html = strReplace(html, '%%VERSION%%', version);
res.setHeader('Content-Type', 'text/html');
res.send(html);