language-handlebars package

Originally a conversion of drnic's handlebars.tmbundle for the Atom editor

Snippets

The package comes with some built-in snippets to help you work more quickly in Handlebars. Feel free to submit issues or pull requests with suggestions for more

Generic Snippets

bindAttr: ba

{{bindAttr ${1:class}=${2:"${3:isSelected}"}}}

checkbox: chb

{{view SC.Checkbox title="Title" class="class"
  valueBinding="App.controller.property"}}

collection: coll

{{#collection SC.TemplateCollectionView contentBinding="App.arrayListController"}}

{{/collection}}

content.field: c

{{content.${1:field}}}

if...end: if

{{#if condition}}

{{/if}}

if...else...end: ife

{{#if condition}}

{{else}}

{{/if}}

unless: unl

{{#unless condition}}

{{/unless}}

view: view

{{#view SC.TemplateView}}

{{/view}}

Ember Snippets

I've also added some snippets that are particularly helpful for people working with Ember.JS

ember-action: ema

{{action 'name'}}