Files
mozo-backend/app/assets/javascripts/shared-ember-helpers/state.js.coffee
T
2014-04-18 20:38:13 +02:00

4 lines
188 B
CoffeeScript

Ember.Handlebars.registerBoundHelper 'state', (subject, state, options={})->
path = "state.#{subject}.#{state}"
new Handlebars.SafeString("<span data-t=\"#{path}\">#{t(path)}</span>")