mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-01-27 22:49:56 -05:00
9f11140ec4
- one big file full of stuff is never good for clarity - separating it out helps us see what requires what - it also highlights the awful naming and opaque behaviour we have in themes - much to do, but this helps us start
9 lines
273 B
JavaScript
9 lines
273 B
JavaScript
function updateLocalTemplateData(req, res, next) {
|
|
// Pass 'secure' flag to the view engine
|
|
// so that templates can choose to render https or http 'url', see url utility
|
|
res.locals.secure = req.secure;
|
|
|
|
next();
|
|
}
|
|
|
|
module.exports = updateLocalTemplateData;
|