Express.js · Pipe
app.locals
app.locals stores values shared by an Express application. Templates rendered with res.render() can use these values, which remain available for the application's lifetime.
Last updated
Syntax
app.locals.name = valueIn-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
res.localsres.renderreq.app