How to use the __express function from pug
Find comprehensive JavaScript pug.__express code examples handpicked from public code repositorys.
GitHub: janoside/btc-rpc-explorer
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');
883
0
70
+ 27 other calls in file
pug.compileFile is the most popular function in pug (496 examples)