Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support use of index.hbs for views #83

Open
dwhieb opened this issue Feb 5, 2019 · 0 comments
Open

support use of index.hbs for views #83

dwhieb opened this issue Feb 5, 2019 · 0 comments

Comments

@dwhieb
Copy link

dwhieb commented Feb 5, 2019

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant