Pug templates can contain logic you can use to make them more versatile. You can show or hide parts of the page conditionally, or iterate over arrays of data to express tables or lists more concisely.
Snippet Used in the Video
const colors = [ 'red', 'orange', 'yellow', 'green', 'blue', 'purple' ];
You need to sign up for Treehouse in order to download course files.Sign up