Skip to content

Commit e7e1194

Browse files
authored
Update README.md
1 parent 3334f4f commit e7e1194

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

+1-2
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,6 @@ The main layout is the HTML page wrapper which can be reused for the different v
124124
</html>
125125
```
126126

127-
You can use a different name for the default layout when registering Handlebars by passing the `defaultLayout` option, e.g. `exphbs({defaultLayout: 'name'})`.
128127

129128
**views/home.handlebars:**
130129

@@ -358,7 +357,7 @@ The string path to the directory where the partials templates reside or object w
358357
**Note:** Multiple partials dirs can be used by making `partialsDir` an array of strings, and/or config objects as described above. The namespacing feature is useful if multiple partials dirs are used and their file paths might clash.
359358

360359
#### `defaultLayout`
361-
The string name or path of a template in the `layoutsDir` to use as the default layout. This is overridden by a `layout` specified in the app or response `locals`. **Note:** A falsy value will render without a layout; e.g., `res.render('home', {layout: false});`.
360+
The string name or path of a template in the `layoutsDir` to use as the default layout. `main` is used as the default. This is overridden by a `layout` specified in the app or response `locals`. **Note:** A falsy value will render without a layout; e.g., `res.render('home', {layout: false});`.
362361

363362
#### `helpers`
364363
An object which holds the helper functions used when rendering templates with this `ExpressHandlebars` instance. When rendering a template, a collection of helpers will be generated by merging: `handlebars.helpers` (global), `helpers` (instance), and `options.helpers` (render-level). This allows Handlebars' `registerHelper()` function to operate as expected, will providing two extra levels over helper overrides.

0 commit comments

Comments
 (0)