-
Book Overview & Buying
-
Table Of Contents
Web Development with Jade
By :
Thanks to a library called transformers by Forbes Lindesay, Jade supports a huge number of these preprocessed languages. You need to install the individual language compilers for most of the transformers, but they're usually pretty easy to install because they're almost all contained in npm modules like the Jade compiler that you installed in Chapter 1, What is Jade?.
It is a little strange to use another template engine inside of Jade code, but it is nevertheless allowed because the underlying transformers library supports it. The following is a list of templating engines:
atpl: Compatible with twig templates
coffeecup: Pure CoffeeScript templates (fork of coffeekup)
dot: Focused on speed
dust: Asynchronous templates
eco: Embedded CoffeeScript templates
ect: Embedded CoffeeScript templates
ejs: Embedded JavaScript templates
haml: Dry indented markup
haml-coffee: This is haml with embedded CoffeeScript
handlebars: Extension of mustache templates
hogan:
mustache...
Change the font size
Change margin width
Change background colour