Further Details About This Book:
Jade is a templating engine for Node.js. It is a new, simplified language that compiles into HTML and is extremely useful for web developers. Jade is designed primarily for server-side templating in Node.js, but it can also be used in a variety of other environments to produce XML-like documents, such as HTML and RSS. This book is an introduction to Jade, and it will provide readers a with faster and cleaner way to write HTML that is more maintainable and automates redundant markup.
What this book covers
Chapter 1, What is Jade?, gives you the idea behind preprocessors and why Jade is awesome. Also, you will learn the process Jade uses to compile templates, and how to install/use Jade.
Chapter 2, Basic Syntax, covers the very basics of the syntax. This includes how indentation-based syntaxes work, how to write tags, text, attributes, comments,
and some nifty shorthands for classes, IDs, and doctypes.
Chapter 3, Feeding Data into Templates, covers both the syntax used to output variables (such as interpolation) and how to actually send the data to the renderer.
Chapter 4, Logic in Templates, introduces flow control structures such as if,
else, case, for, and while. Also, we discuss adding more advanced logic using
raw JavaScript.
Chapter 5, Filters, introduces you the first "feature" of the Jade language—filters—a way to automatically compile other preprocessed languages (such as Stylus, Markdown, or CoffeeScript) directly in templates.
Chapter 6, Mixins, offers a way to write reusable functions inside templates in order to reduce redundancy.
No comments:
Post a Comment