A clean, whitespace-sensitive template language for writing HTML
Full documentation is at jade-lang.com
You can test drive Jade online here.
$ npm install jade
Jade is a clean, whitespace sensitive syntax for writing html. Here is a simple example:
JadeJade - node template engineYou are amazingJade is a terse and simple templating language with a strong focus on performance and powerful features.
For full API, see jade-lang.com/api
var jade = ;// compilevar fn = jade;var html = ;// rendervar html = jade;// renderFilevar html = jade;
filenameUsed in exceptions, and required when using includes
falseno debug instrumentation is compiled
prettyAdd pretty-indentation whitespace to output (false by default)
To compile a template for use on the client using the command line, do:
$ jade --client --no-debug filename.jade
which will produce
filename.js containing the compiled template.
After installing the latest version of node, install with:
$ npm install jade -g
and run with
$ jade --help
Implementations in other languages: