Skip to content

Commit 3c31912

Browse files
Merge pull request #1194 from thibautRe/express-handlebars-fix
fix: explicitely set defaultLayout to null
2 parents 15dbf6f + 85c0045 commit 3c31912

File tree

3 files changed

+26
-18
lines changed

3 files changed

+26
-18
lines changed

lib/create-app.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,8 @@ function initViews (app, configPath) {
186186
app.set('views', viewsPath)
187187
app.engine('.hbs', handlebars({
188188
extname: '.hbs',
189-
partialsDir: viewsPath
189+
partialsDir: viewsPath,
190+
defaultLayout: null
190191
}))
191192
app.set('view engine', '.hbs')
192193
}

package-lock.json

Lines changed: 23 additions & 16 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868
"cors": "^2.7.1",
6969
"debug": "^2.6.9",
7070
"express": "^4.16.3",
71-
"express-handlebars": "^3.0.0",
71+
"express-handlebars": "^3.1.0",
7272
"express-session": "^1.15.6",
7373
"extend": "^3.0.0",
7474
"from2": "^2.1.0",

0 commit comments

Comments
 (0)