added footer.build and page.load hooks

This commit is contained in:
Julian Lam
2013-11-21 15:05:45 -05:00
parent 2cf55dcf9f
commit a9ce8393e4
5 changed files with 12 additions and 4 deletions

View File

@@ -309,7 +309,11 @@ var path = require('path'),
// translate all static templates served by webserver here. ex. footer, logout
translator.translate(templates.footer.toString(), function(parsedTemplate) {
templates.footer = parsedTemplate;
plugins.fireHook('filter:footer.build', '', function(err, appendHTML) {
templates.footer = templates.footer.parse({
footerHTML: appendHTML
});
});
});
translator.translate(templates.logout.toString(), function(parsedTemplate) {
templates.logout = parsedTemplate;