|
|
@ -7,10 +7,8 @@ var fs = require('fs');
|
|
|
|
function loadTemplates(templatesToLoad) {
|
|
|
|
function loadTemplates(templatesToLoad) {
|
|
|
|
for (var t in templatesToLoad) {
|
|
|
|
for (var t in templatesToLoad) {
|
|
|
|
(function(template) {
|
|
|
|
(function(template) {
|
|
|
|
console.log(global.configuration.ROOT_DIRECTORY);
|
|
|
|
|
|
|
|
fs.readFile(global.configuration.ROOT_DIRECTORY + '/public/templates/' + template + '.tpl', function(err, html) {
|
|
|
|
fs.readFile(global.configuration.ROOT_DIRECTORY + '/public/templates/' + template + '.tpl', function(err, html) {
|
|
|
|
global.templates[template] = html;
|
|
|
|
global.templates[template] = html;
|
|
|
|
console.log(html);
|
|
|
|
|
|
|
|
});
|
|
|
|
});
|
|
|
|
}(templatesToLoad[t]));
|
|
|
|
}(templatesToLoad[t]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|