O'Reilly logo

Instant Ember.js Application Development How-to by Marc Bodmer

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Handlebar HTML templates (Simple)

Handlebars is a logic-less semantic templating engine that will interact with our views to render HTML elements. Handlebars is the default engine for Ember.js. Handlebars is an extension of the mustache templating engine. At runtime, Ember.js will compile all Handlebar templates. A Handlebars expression takes the form of {{contents}}.

Apart from plain HTML, templates embed:

  • Expressions: An expression takes data from a controller, view, or context and places it into HTML and automatically keeps the data in sync.
  • Outlets: Outlets are placeholders for other templates. The router places different templates in your outlets as your application state changes. Handlebars has the {{outlet}} helper for doing this.
  • Views: Views ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required