Optional
views_Absolute path to the directory where the view files are located, defaults to <application root directory>/views
.
Optional
partials_Path to partials templates, one or several directories, defaults to <application root directory>/views/partials
.
Optional
layouts_Path to layout templates, defaults to <application root directory>/views/layout
.
Optional
default_Absolute path to default layout template. defaults to <application root directory>/views/layout/default.hbs
.
Optional
extensionExtension for templates & partials, defaults to .hbs
,
Optional
beforeHook function just before the view is rendered. For example, you can set your own local variables that can be used within the view.
Handlebars view engine configuration interface. Defines configuration for template directories, layouts, partials, and rendering hooks.
See
Handlebars Guide
Example