mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-08 23:15:48 +01:00
allow for the possibility of custom post-header or pre-footer templating
This commit is contained in:
@@ -304,6 +304,8 @@ middleware.processRender = function(req, res, next) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
render.call(self, template, options, function(err, str) {
|
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) {
|
if (res.locals.footer) {
|
||||||
str = str + res.locals.footer;
|
str = str + res.locals.footer;
|
||||||
} else if (res.locals.adminFooter) {
|
} else if (res.locals.adminFooter) {
|
||||||
|
|||||||
Reference in New Issue
Block a user