Chapter 4. Automatically updating templates with Handlebars.js

This chapter covers

  • Understanding why you need templates
  • Working with Handlebars.js expressions
  • Using simple and complex expressions
  • Understanding the relationship between Ember.js and Handlebars.js
  • Creating your own custom expressions

Ember.js doesn’t include a default template library, and you’re free to use your favorite JavaScript library. But because the same people who are behind Ember.js are also behind Handlebars.js, Handlebars.js is an especially nice fit for Ember.js applications. Handlebars.js also has all the features that you’re looking for in a solid template library. Handlebars.js is based on Mustache, which is a logic-less template library that exists for ...

Get Ember.js in Action 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.