Using template values in footer.tpl?
-
From my spelunking around it appears that use of normal template values in footer.tpl is not possible (aside from {loggedIn}). Should the values available to footer.tpl be the same as the ones available to header.tpl? (Which includes values made available to config via the "filter:config.get" plugin hook).
Would this be the right place to inject the config values into the footer.tpl?
https://github.com/NodeBB/NodeBB/blob/master/src/middleware/header.js#L31-L34Any thoughts from the NodeBB team? I'd be happy to add some code and send a pull request, if you guys are open to a change here.
-
@baris Yeah, I can see how that would make sense. In custom routes, would developers then have to include both the header middleware and a footer middleware? That sounds reasonable and allows for easy customization.
Is this something that one you guys would want to take on? Or should I write some code and send a pull request?
Thanks!