Skip to content

Commit

Permalink
fix: update default view engine from jade to pug
Browse files Browse the repository at this point in the history
  • Loading branch information
RushilJalal committed Dec 13, 2024
1 parent 695afb5 commit c9100ff
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion bin/express-cli.js
Original file line number Diff line number Diff line change
Expand Up @@ -467,7 +467,7 @@ function main (options, done) {
if (options.view === true) {
warning('the default view engine will not be jade in future releases\n' +
"use `--view=jade' or `--help' for additional options")
options.view = 'jade'
options.view = 'pug'
}

// Generate application
Expand Down
4 changes: 3 additions & 1 deletion test/cmd.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ describe('express(1)', function () {
' "debug": "~2.6.9",\n' +
' "express": "~4.17.1",\n' +
' "http-errors": "~1.7.2",\n' +
' "jade": "~1.11.0",\n' +
// replace default jade with pug
// ' "jade": "~1.11.0",\n' +
' "pug": "~3.0.3",\n' +
' "morgan": "~1.10.0"\n' +
' }\n' +
'}\n')
Expand Down

0 comments on commit c9100ff

Please sign in to comment.