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').
Assuming the following folder structure:
It should be possible to render a view by calling
context.render('home')
.koa-hbs
should look for anindex.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')
.