Book Image

Web Development with Jade

By : Sean Lang
Book Image

Web Development with Jade

By: Sean Lang

Overview of this book

Table of Contents (16 chapters)

The full list


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?.

Template engines

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...