koa-hbs icon indicating copy to clipboard operation
koa-hbs copied to clipboard

support use of index.hbs for views

Open dwhieb opened this issue 6 years ago • 0 comments

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').

dwhieb avatar Feb 05 '19 15:02 dwhieb