deprecated server side templates finally. code sharing between client side and server side templates; force_refresh parameter added to temasd

deprecated server side templates finally. code sharing between client
side and server side templates; force_refresh parameter added to
templates config.json; created initialization fn for webserver
This commit is contained in:
psychobunny
2013-05-17 13:36:35 -04:00
parent 3df8d7279b
commit 1cdbd376ba
6 changed files with 104 additions and 153 deletions

View File

@@ -20,7 +20,7 @@ var express = require('express'),
(function(app) {
var templates = global.templates;
var templates = null;
// Middlewares
app.use(express.favicon()); // 2 args: string path and object options (i.e. expire time etc)
@@ -38,6 +38,11 @@ var express = require('express'),
key: 'express.sid'
}));
module.exports.init = function() {
templates = global.templates;
}
auth.initialize(app);
app.use(function(req, res, next) {