allow for the possibility of custom post-header or pre-footer templating

This commit is contained in:
psychobunny
2014-04-19 11:56:39 -04:00
parent af54d9fa64
commit 1f9bdd840f

View File

@@ -304,6 +304,8 @@ middleware.processRender = function(req, res, next) {
}
render.call(self, template, options, function(err, str) {
str = (res.locals.postHeader ? res.locals.postHeader : '') + str + (res.locals.preFooter ? res.locals.preFooter : '');
if (res.locals.footer) {
str = str + res.locals.footer;
} else if (res.locals.adminFooter) {