support use of index.hbs for views
dwhieb opened this issue · 0 comments
dwhieb commented
Assuming the following folder structure:
/views
/home
- index.hbs
- home.css
/contact
- index.hbs
- contact.css
It should be possible to render a view by calling context.render('home')
. koa-hbs
should look for an index.hbs
file in the /home
folder, and use that template if found.
Currently, it is only possible to render a view with the above folder structure by using context.render('home/index')
.