Closed findesk closed 11 years ago
Hi...
README.md indicates 'basePath' is available (to change the template directory)....but couldn't see this implemented. (Perhaps I've missed something.)
I needed to add:
var internals = { defaults: { basePath: './templates' } }
and reference this in register:
plugin.views({ engines: { html: 'handlebars' }, path: settings.basePath });
Instead of this:
plugin.views({ engines: { html: 'handlebars' }, path: './templates' });
thanks
Hi, I have the same question/problem.
Thank you...I hadn't seen 'basePath' here: http://spumko.github.io/resource/api/#server.config.views
(which added to lout plugin.views will do the trick)
Hi...
README.md indicates 'basePath' is available (to change the template directory)....but couldn't see this implemented. (Perhaps I've missed something.)
I needed to add:
var internals = { defaults: { basePath: './templates' } }
and reference this in register:
Instead of this:
thanks