Ajax Loader
×

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:

×

Coding Preferences


HTML

CSS

Javascript

More

2 Comments

× New

Sign In to comment

robhatiro:

You do not know how to compile jade code that has coffescript code?

×

Your Default Settings - Preferences

×
×
×

Validations

(Errors from your JS or Pre-Processors code)

    HTML
    CSS
    JavaScript
    CSSDeck G+