Is it safe to pass req as a variable in res.render in expressJs? <p>I'm using NodeJs+ ExpressJs + Handlebars to build a website. When rendering a page I need to pass 3 things everytime : isAuthenticated, userEmail, and FlashMsg. Instead of This :</p> <pre><code>res.render('/webPage', {isAuthenticated: req.isAuthenticated(), userEmail: req.user.email, flashMsg: req.flash()}); </code></pre> <p>Is it safe to do it like that so everythings will be accessible on the page?:</p> <pre><code>res.render('/webPage', {req:req}); </code></pre> <p>Is it too much stuff passed to the page or it's not a problem ? Thanks.</p>