Closed D-Gould closed 4 years ago
5/11- implemented pug! Added views and used render to display them. This allowed me to pass in instance variables (like code
) and display them in the browser.
pug -w ./ -o ./html -P
- this is the command to update html templates
Utilizing a templating engine like pug (formerly jade) will allow me to use res.render and more easily send local variables between JS and HTML (link)