PacktLib: Web Development with Jade

Web Development with Jade

Credits

About the Author

About the Reviewers

www.PacktPub.com

Preface

What is Jade?

Markup like poetry

Compiling Jade

Summary

Basic Syntax

Significance of whitespace

Tags

Inline HTML

Attributes

Shorthands

Comments

Block expansion

Doctypes

Summary

Feeding Data into Templates

Syntax

Defining variables

Interpolation everywhere!

Using variables without interpolation

Escaping

Sending the variables to the compiler

Summary

Logic in Templates

Adding logic with JavaScript

Built-in logical operators

A warning about interpolation

Summary

Filters

The full list

Examples

Passing arguments

Summary

Mixins

Syntax and mechanics

Another warning about interpolation

The arguments object

Summary

Template Inheritance

Blocks

Extends

Includes

Summary

Organizing Jade Projects

General best practices

Summary

A Closing Note – Contributing Back to Jade

Index