Jade Cheatsheet and example
I like jade better than most html templating systems I’ve tried, although it seems very similar to HAML which I also like.
So let me put a couple resources here where I can find them later, when it’s been a bit too long and I need a little reminder. First up, my Jade Cheatsheet This is not verbose enough to be useful in general, but it works for me.
Next is an example. I’m always trying to use jade these days on projects, and so I use grunt-init
templates to start projects with all my stuff organized the way I like. The example is the <HEAD> section to get used by pages in the site. I like this file as an example because it has a variety of examples including varibales, mixins, iteration and so on.
jade include file for <HEAD> section
I’m totally fine with sharing the whole template, but doubt anyone will ask :) But for the record, if you want it, this is from a template which uses coffee script, SASS, and jade, along with a gruntfile to do simple builds and manage the linting, deploying, etc.