vol4ok / hogan-express

Mustache template engine for express 3.x. Support partials and layout
MIT License
138 stars 31 forks source link

Params passed into "res.render" are ignored #4

Closed glenjamin closed 12 years ago

glenjamin commented 12 years ago

The following:

res.render('index', {something: value});

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 the app.settings.locals bit either.

jmfederico commented 12 years ago

Pleas commit this! Really a must to be express compliant!

vol4ok commented 12 years ago

Merged. Changes available in new version 0.3.3

glenjamin commented 12 years ago

Cheers for the speedy repsonse!