How to use the __express function from pug

Find comprehensive JavaScript pug.__express code examples handpicked from public code repositorys.

169
170
171
172
173
174
175
176
177
178
179
180
expressApp.set('views', path.join(__dirname, 'views'));


// ref: https://blog.stigok.com/post/disable-pug-debug-output-with-expressjs-web-app
expressApp.engine('pug', (path, options, fn) => {
	options.debug = false;
	return pug.__express.call(null, path, options, fn);
});


expressApp.set('view engine', 'pug');

fork icon883
star icon0
watch icon70

+ 27 other calls in file