mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-12-21 16:00:26 +01:00
@@ -122,7 +122,7 @@ function setupExpressApp(app, callback) {
|
||||
var viewsDir = nconf.get('views_dir');
|
||||
|
||||
app.engine('tpl', function (filepath, data, next) {
|
||||
filepath = filepath.replace(/\.tpl$/, '.jst');
|
||||
filepath = filepath.replace(/\.tpl$/, '.js');
|
||||
|
||||
middleware.templatesOnDemand({
|
||||
filePath: filepath,
|
||||
|
||||
Reference in New Issue
Block a user