Closed glenjamin closed 12 years ago
The following:
res.render('index', {something: value});
should provide {{something}} as "value", as with the other express template engines.
{{something}}
Express 3.0 already handles sorting out the locals for you, you just need to pass the whole options object into the template for rendering.
options
Express also already provides app.locals, so you shouldn't need to include the app.settings.locals bit either.
app.locals
app.settings.locals
Pleas commit this! Really a must to be express compliant!
Merged. Changes available in new version 0.3.3
Cheers for the speedy repsonse!
The following:
should provide
{{something}}
as "value", as with the other express template engines.Express 3.0 already handles sorting out the locals for you, you just need to pass the whole
options
object into the template for rendering.Express also already provides
app.locals
, so you shouldn't need to include theapp.settings.locals
bit either.