Closed jakubiszon closed 4 years ago
All new development is on the repo express-handlebars/express-handlebars.
you can set the defaultLayout
option to null
if you do not want a layout.
Thank you, that helped. I updated the readme file in the repo you mentioned to give better information on opting out from using layouts. I think this issue can be closed now.
Is having the layouts directory mandatory? Is having the main.handlebars file mandaotry? If so - the documentation does not state they MUST exist in order for the engine to work.
Here is what I have tried that resulted in the quoted error message:
The file
'/views/pages/index.handlebars'
does exist.I realize it may be a noob problem but still it is either the module which doesn't support simplest cases or the documentation which fails to communicate what is required.