Home

Awesome

Learning pug (used to be called jade)

Just one of the things I'm learning. https://github.com/hchiam/learning

Tutorial: https://www.sitepoint.com/a-beginners-guide-to-pug

yarn add pug
yarn global add pug-cli
pug -w test.pug -o ./html -P
# -w means watch
# -o is for output
# -P is for prettify

test.pug -> html/test.html

More reading

For combining with Express.js and data, see "A Hands-on Example" in https://www.sitepoint.com/a-beginners-guide-to-pug

https://pugjs.org/language/mixins.html

https://pugjs.org/language/interpolation.html

https://pugjs.org/language/inheritance.html