mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
allow express to serve parsed tpls via res.render
This commit is contained in:
@@ -226,6 +226,10 @@ process.on('uncaughtException', function(err) {
|
||||
|
||||
// Middlewares
|
||||
app.configure(function() {
|
||||
app.engine('tpl', templates.__express);
|
||||
app.set('view engine', 'tpl');
|
||||
app.set('views', path.join(__dirname, '../public/templates'));
|
||||
|
||||
async.series([
|
||||
function(next) {
|
||||
// Pre-router middlewares
|
||||
|
||||
Reference in New Issue
Block a user