mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-02 20:16:04 +01:00
tweaks
This commit is contained in:
@@ -7,10 +7,8 @@ var fs = require('fs');
|
||||
function loadTemplates(templatesToLoad) {
|
||||
for (var t in templatesToLoad) {
|
||||
(function(template) {
|
||||
console.log(global.configuration.ROOT_DIRECTORY);
|
||||
fs.readFile(global.configuration.ROOT_DIRECTORY + '/public/templates/' + template + '.tpl', function(err, html) {
|
||||
global.templates[template] = html;
|
||||
console.log(html);
|
||||
});
|
||||
}(templatesToLoad[t]));
|
||||
}
|
||||
|
||||
@@ -5,6 +5,7 @@ var express = require('express'),
|
||||
|
||||
(function(app) {
|
||||
var templates = global.templates;
|
||||
global.app = app;
|
||||
|
||||
app.get('/test', function(req, res) {
|
||||
var body = 'testing';
|
||||
|
||||
Reference in New Issue
Block a user