is there any alternate for using session variables in jade template file other than using dynamic helper function and passing it through res.render? if i use dynamichelpers method its showing error since it is deprecated. please help
app.use(function(req, res, next){
res.locals.user = "xxxx";
next();
});
i used this code in app.js inside app.configure function. but still i couldn't use the variable user in my view. do i need to install any additional packages or any other code?