RandomEtc / ejs-locals

Express 3.x layout, partial and block template functions for the EJS template engine.
298 stars 63 forks source link

Added support for theme folder #25

Open olivercox opened 11 years ago

olivercox commented 11 years ago

If options.settings['theme'] is set by calling

"app.set('theme', __dirname + '/themes/' + storeConfig.ActiveTheme);"

then all templates will be loaded from the themes folder if they exist. If they don't exist templates will be loaded as usual.

RandomEtc commented 11 years ago

This looks simple enough - can you add some tests maybe an example? Apologies up-front that the tests are a little bit of a rats' nest, feel free to start a separate file.

bebraw commented 11 years ago

+1

Any progress with this?

By the way as a workaround it would be awesome if relative paths worked. Seems to fail with good old ...