Set up a Template Engine

repl link:

const pug = require('pug');

app.set('view engine', 'pug');
app.set('views', './views/pug');

app.route('/').get((req, res) => {

page is successfully rendered but sill the test is not passing:

  • View engine should be Pug.

  • Failed:You should set the views property of the application to ./views/pug.

what could be the problem?

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.