Ember.js snippets for Sublime Text 2
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
README.md
app.sublime-snippet
app_coffee.sublime-snippet
component.sublime-snippet
component_coffee.sublime-snippet
controller.sublime-snippet
controller_coffee.sublime-snippet
handlebars_action.sublime-snippet
handlebars_each.sublime-snippet
handlebars_eachelse.sublime-snippet
handlebars_if.sublime-snippet
handlebars_ifelse.sublime-snippet
handlebars_linkto.sublime-snippet
handlebars_partial.sublime-snippet
handlebars_unless.sublime-snippet
handlebars_view.sublime-snippet
helper.sublime-snippet
helper_coffee.sublime-snippet
mixin.sublime-snippet
mixin_coffee.sublime-snippet
model.sublime-snippet
model_coffee.sublime-snippet
object.sublime-snippet
object_coffee.sublime-snippet
observes.sublime-snippet
observes_coffee.sublime-snippet
property.sublime-snippet
property_coffee.sublime-snippet
route.sublime-snippet
route_coffee.sublime-snippet
router.sublime-snippet
router_coffee.sublime-snippet
store.sublime-snippet
store_coffee.sublime-snippet
view.sublime-snippet
view_coffee.sublime-snippet
x-handlebars.sublime-snippet

README.md

Ember.js snippets for Sublime Text 2

Ember.js

  • app ⇥
  • component ⇥
  • controller ⇥
  • helper ⇥
  • mixin ⇥
  • model ⇥
  • object ⇥
  • route ⇥
  • router ⇥
  • store ⇥
  • view ⇥

Handlebars helpers

  • action ⇥
  • each ⇥
  • eachelse ⇥
  • if ⇥
  • ifelse ⇥
  • linkto ⇥
  • partial ⇥
  • unless ⇥
  • viewb ⇥

Handlebars script tag

  • hbs ⇥

If you don't want to be annoyed by JavaScript syntax when using type="text/x-handlebars" with Sublime Text 2, just edit the HTML.tmLanguage file, replacing:

<string>(?:^\s+)?(&lt;)((?i:script))\b(?![^&gt;]*/&gt;)</string>

with:

<string>(?:^\s+)?(&lt;)((?i:script))\b(?!([^&gt;]*text/x-handlebars[^&gt;]*|[^&gt;]*/>))</string>