Set up a Template Engine (Hint)

What is your hint or solution suggestion?
(1) Pug should be installed as a dependency in the json package:

  • { … ,
    “pug”: “^#.#.#.”
    }

(2) Assign Pug as the ‘view engine’ using the set method:

  • app.set(‘view engine’ , ‘pug’);

(3) Change res.send(…) to res.render(…)

(4) Delete the “Pug template is not defined” argument of res.send() and change it to to the file path name that will render a file as static HTML in the browser

  • The file path name should be rendered as a STRING.

  • You want to render the index.pug file

  • You don’t need to include the .pug in the file name string

Link to the challenge: