Modified how template list is generated to be a function to allow checking whether the templates can be printed.
This commit is contained in:
@@ -202,6 +202,7 @@ exports.render = (req, res) => {
|
||||
//console.log("[HJS Render] Context", req.body.context);
|
||||
if (req.body.context.bodyshop.template_header) {
|
||||
console.log("[HJS Render] Including Header");
|
||||
//view = req.body.view;
|
||||
view = `${req.body.context.bodyshop.template_header}${req.body.view}`;
|
||||
} else {
|
||||
console.log("[HJS Render] No header to include.");
|
||||
|
||||
Reference in New Issue
Block a user