Learning the Jade Templating Engine Syntax
Jade is a cool, high-performance (and probably the most used) templating engine for Node.js (Server Side Javascript). It has been influenced by HAML.
In this lesson we're going to cover the following features of Jade:
- Texts inside HTML tags
- Comments
- IDs and Classes
- Attributes
- Nesting of HTML code
- Using Variables inside templates that are either passed from the server-side code or set into the Jade template itself
- Escaping/Unescaping
I'll do a second part where I'll show how to do conditionals, mixins, loops and few other nifty stuffs in jade.
I might have missed some things. So check out the official documentation too.
2 Comments
× New@robhatiro check this out http://cssdeck.com/labs/jade-templating-tutorial-codecast-part-2
You do not know how to compile jade code that has coffescript code?