Use a Template Engine's Powers (Hint)

What is your hint or solution suggestion?
(1) Use your previous solution for res.render(…):

res.render(process.cwd() + '/views/pug/index')

(2) In res.render(…), pass text values for your two variables: title and message

  • You pass values to inline html variables the following way:

  • {variable: "Variable1 Value", variable2: "Variable 2 Value"....}

  • {title: 'Hello', message: 'Please login'})

  • Pass the above code to your res.render(…) solution

Challenge: Use a Template Engine’s Powers

Link to the challenge: