Often, we need a bit more power than just outputting the text that's passed to our templates. For that, we have logical operations that we can use in templates. In this chapter, we covered flow control structures such as if, else, case, for, and while. Also, we discussed adding more advanced logic with raw JavaScript.
Web Development with Jade
By :
Web Development with Jade
By:
Overview of this book
Table of Contents (16 chapters)
Web Development with Jade
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Basic Syntax
Feeding Data into Templates
Logic in Templates
Template Inheritance
Organizing Jade Projects
A Closing Note – Contributing Back to Jade
Index
Customer Reviews