|
|
@ -40,12 +40,13 @@ module.exports= |
|
|
|
const file = "../admin/admin.js"; |
|
|
|
|
|
|
|
var templateContext = Object(); |
|
|
|
Promise.all([includes.printAdminHeader(templateContext), |
|
|
|
Promise.all([includes.fetchTemplate("admin/adminMain.html")], |
|
|
|
includes.printAdminHeader(templateContext), |
|
|
|
require(file).main(request, clientAddress, templateContext, filename), |
|
|
|
includes.printFooter(templateContext), |
|
|
|
includes.fetchTemplate("admin/adminMain.html")]).then(function(content) |
|
|
|
includes.printFooter(templateContext) |
|
|
|
).then(function(content) |
|
|
|
{ |
|
|
|
result.write(whiskers.render(content.join(''), templateContext)); |
|
|
|
result.write(whiskers.render(content[0], templateContext)); |
|
|
|
result.end(); |
|
|
|
|
|
|
|
}).catch(function(err) |
|
|
|