From d5453efdac9d5512aea903100aacfca965b1eabb Mon Sep 17 00:00:00 2001 From: barisusakli Date: Wed, 19 Nov 2014 14:14:35 -0500 Subject: [PATCH] added current template name to return --- src/middleware/middleware.js | 1 + 1 file changed, 1 insertion(+) diff --git a/src/middleware/middleware.js b/src/middleware/middleware.js index 0693c39d5f..89c954bccd 100644 --- a/src/middleware/middleware.js +++ b/src/middleware/middleware.js @@ -392,6 +392,7 @@ middleware.processRender = function(req, res, next) { } options.loggedIn = req.user ? parseInt(req.user.uid, 10) !== 0 : false; + options[template] = true; if ('function' !== typeof fn) { fn = defaultFn;