Express.js · Method
view engine
Configure a view directory and template engine, then use res.render() to turn a template and local values into an HTML response. Express can infer the template extension when the engine is configured.
Last updated
Syntax
res.render(view [, locals] [, callback])In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
app.set()res.localsapp.localsres.send()app.engine()