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.
Related:
Warning: Invalid argument supplied for foreach() in /var/www/cssdeck.com/app/modules/labs/views/_details.php on line 68