Create an express project called JadeBasics. Add the following:
We will use Pug as a template engine. It allows us to:
There are other templates engines. Which one you use can be a matter of taste or a matter of fitting the right tool to the right use case. We will focus mostly on Pug because it is widely used and well written and well integrated into Express.
And yes, as Austin points out, Pug used to be called Jade. There was a copyright issue regarding the name, so we now call it pug. I didn't like the new name at first, but it has grown on me. Certainly, it is short! There may be assignments where I talk about Jade, just remind me to update the assignment, and mentally change the word Jade to Pug.
Written with StackEdit.