Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVASCRIPT

how to render req.session.name to ejs

app.use(function(req, res, next) {
  res.locals.user = req.session.user;
  next();
});
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #render #ejs
ADD COMMENT
Topic
Name
1+2 =