Handlebars (HBS)

Minimal templating on steroids

What is Handlebars?

Handlebars is a simple templating language on top of which Ember.js is built.

It uses a template (.hbs file) and an input object to generate HTML or other text formats. Handlebars templates look like regular text with embedded Handlebars expressions

<p>{{firstname}} {{lastname}}</p>

A handlebars expression is a {{, some contents, followed by a }}. When the template is executed, these expressions are replaced with values from an input object.

Source: Handlebars.

Last updated