Lesson

Question App in Nodejs, Pug, Express, Rendering Response 2

Lesson Summary

In this lesson we look at sending information from our backend to our frontend using express and rendering on pug. We create an array of questions and pass it into our new 'cards' route which we use to render out 'card.pug' file. If you are looking to master express then I suggest you learn how to pass in information using the second parameter when using the render method. Also utilizing res.locals gives us access to passing in infor when needed.

Subscribe To Monthly Newsletter. Chance to Win Monthly Prizes

* indicates required


Share: