5 lines
181 B
CoffeeScript
5 lines
181 B
CoffeeScript
App.StateHelper = Ember.Helper.helper (params, options)->
|
|
[subject, state] = params
|
|
path = "state.#{subject}.#{state}"
|
|
"<span data-t=\"#{path}\">#{t(path)}</span>".htmlSafe()
|