Node.js based forum software built for the modern web
deprecating loadServer in favour of using res.render
psychobunny4a33b414644d
diff --git a/public/src/templates.js b/public/src/templates.jsindex 2ac8f0b7fb..d967984852 100644--- a/public/src/templates.js+++ b/public/src/templates.js@@ -64,6 +64,8 @@function loadTemplates(templatesToLoad, customTemplateDir) {function loadServer() {+ return templates.ready();+var loaded = templatesToLoad.length,templatesPath = __dirname + '/../templates';@@ -140,8 +142,7 @@if (!templates[tpl]) {fs.readFile(filename, function (err, html) {- templates[tpl] = html.toString();- templates.prepare(templates[tpl]);+ templates[tpl] = templates.prepare(html.toString());return fn(err, templates[tpl].parse(options));});