Chapter 9. Client-side Templates

In this chapter, we will cover the following recipes:

  • Rendering objects using Handlebars
  • Rendering objects using EJS
  • Rendering objects using Jade
  • Rendering arrays using Handlebars
  • Rendering arrays using EJS
  • Rendering arrays using Jade
  • Simplifying templates with helpers in Handlebars
  • Reusing templates with partials in Handlebars
  • Reusing templates with partials in EJS
  • Using filters in Jade
  • Using mixins in Jade
  • Using layouts and blocks in Jade

Introduction

Modern service apps are often built for multiple platforms, where only one of those platforms is the Web. Other platforms may include iOS, Android, and other websites that need to use the service through an API. Some of those platforms might not support HTML. They might also ...

Get HTML5 Data and Services Cookbook now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.