ericf / express-handlebars

A Handlebars view engine for Express which doesn't suck.
BSD 3-Clause "New" or "Revised" License
2.31k stars 384 forks source link

Use Express app settings for `layoutsDir`, `partialsDir`, etc.? #19

Closed ericf closed 10 years ago

ericf commented 11 years ago

All the the configuration properties could be expressed as application settings via Express. Would it be a good idea to switch these to app settings?

carbonrobot commented 11 years ago

Were you thinking of doing this with get() and set()?

app.set('layoutsDir', '/layouts/custom');
ericf commented 11 years ago

Yeah… something like that, but probably namespaced like "handlebars layouts dir" in case an app is using many view engines. Still not sure if it's a great idea yet.

ericf commented 10 years ago

No one was asked for this, so closing it…feel free to open if you feel strongly about wanting this feature.