Web development with Jade

Web development with Jade

by Lang, Sean

Type Book
Rate 0.0 /5

In Detail Jade is a template engine for node.js and the default rendering engine for the Express web framework. 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 practical, example-oriented guide will teach you how to write Jade, utilize its features, and recognize …

Read More ↓

Title Statements

  • Full title :Web development with Jade / SeanLang.

Summary

In Detail Jade is a template engine for node.js and the default rendering engine for the Express web framework. 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 practical, example-oriented guide will teach you how to write Jade, utilize its features, and recognize the best ways to organize templates in your projects. With this book, you will avoid the common pitfalls and issues with sparse documentation, allowing you to learn Jade faster and use it more effectively. To understand Jade, we will first examine the reasons for its design and how these translate into a tool that can provide real benefits to you. You will develop confidence with each of the features of the language with the help of practical examples and thorough explanations. We will cover preprocessors, basic syntax, feeding data into templates, and incorporating logic. By the end of this book, you will be able to effectively use essential features such as filters and mixins as well as template inheritance through a block system. To tie it all together, we will also look at some of the best practices to follow when organizing your Jade projects. Use this comprehensive guide to the Jade language to help you become a more efficient web developer. Approach This is a step-by step, tutorial-based book which will enable web developers to explore the functionalities of Jade and learn how to use it to write certain functions and processes for web development. Who this book is for This book is for web developers with at least a basic understanding of HTML and JavaScript. It will enable you to write an easier form of language that then compiles into HTML.

Read More ↓

Edition Statements

  • Publication Date:2014.

Publication Statements

  • Publisher(s):Packt Publishing
  • Place of Publication:Birmingham
  • Language:eng
  • Publication Date:2014.

The Physical Object

  • Description:1 online resource

Edition Identifiers

  • ISBN:9781783286362, 1783286369, 1306545668, 9781306545662, 1783286350, 9781783286355
  • oclc:ocn875641367
  • LC Classification:TK5105.888
  • Dewey Decimal:006.7

Table of Contents

Cover; Copyright; Credits; About the Author; About the Reviewers; www.PacktPub.com; Table of Contents; Preface; Chapter 1: What is Jade?; Markup like poetry; Why should I preprocess?; How Jade preprocesses; Comparison with other preprocessors; HAML; PHP; Jinja2; Mustache; Installation instructions; Compiling Jade; Summary; Chapter 2: Basic Syntax; Significance of white space; Tags; Text and blocks of text; Text on the same line; Text blocks; Shorthand text blocks; Inline HTML; Attributes; Passing objects as attributes; Shorthands; IDs and classes; Automatic div; Comments; Single line.

Block commentsBlock expansion; Doctypes; Summary; Chapter 3: Feeding Data into Templates; Syntax; Defining variables; Interpolation everywhere!; Using variables without interpolation; Escaping; Sending the variables to the compiler; Compiler arg; Programmatically; Summary; Chapter 4: Logic in Templates; Adding logic with JavaScript; If/else; For loops; Complex operations; Built-in logical operators; If / else / else if; Unless; Cases; Each loops; While loops; A warning about interpolation; Summary; Chapter 5: Filters; The full list; Template engines; Stylesheet languages; Minifiers; Other.

Examples…

Read More ↓

Subjects

Writers

Rate & Review

0.0/5
(0 people Voted)

No reviews yet. Be the first to rate this work.

Files & Downloads

  • Web Development with Jade -- (.pdf)

    PDF · 2.9 MB · updated
  • Web development with Jade -- (.epub)

    EPUB · 369.4 KB · updated
  • Web development with Jade -- (.mobi)

    MOBI · 757.3 KB · updated
  • Web development with Jade -- (.pdf)

    PDF · 1.4 MB · updated