|
|
@ -35,8 +35,8 @@ app.set('views', path.join(__dirname, 'views')); |
|
|
|
|
|
|
|
// ref: https://blog.stigok.com/post/disable-pug-debug-output-with-expressjs-web-app
|
|
|
|
app.engine('pug', (path, options, fn) => { |
|
|
|
options.debug = false; |
|
|
|
return pug.__express.call(null, path, options, fn); |
|
|
|
options.debug = false; |
|
|
|
return pug.__express.call(null, path, options, fn); |
|
|
|
}); |
|
|
|
|
|
|
|
app.set('view engine', 'pug'); |
|
|
|