mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 03:55:55 +01:00
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:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user