outmoded / lout

API documentation generator
Other
276 stars 49 forks source link

basePath doesn't seem implemented #23

Closed findesk closed 11 years ago

findesk commented 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

joaquimserafim commented 11 years ago

Hi, I have the same question/problem.

thanks

findesk commented 11 years ago

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)