ejs-locals icon indicating copy to clipboard operation
ejs-locals copied to clipboard

Added support for theme folder

Open olivercox opened this issue 12 years ago • 2 comments

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.

olivercox avatar Jan 11 '13 15:01 olivercox

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.

RandomEtc avatar Jan 11 '13 17:01 RandomEtc

+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 ...

bebraw avatar Jul 04 '13 15:07 bebraw