General usability
This commit is contained in:
@@ -3,5 +3,5 @@ Ember.Handlebars.helper 't', (path, params..., options)->
|
||||
if params.length and typeof(params[0].serialize) is 'function'
|
||||
$.extend toptions, params[0].serialize()
|
||||
text = t(path, options.hash)
|
||||
tag = if options.hash.bare then text else "<span data-t='#{path}' data-t-attributes='#{JSON.stringify(options.hash)}'>#{text}</span>"
|
||||
tag = if options.hash.bare then text else "<span data-t='#{path}' class='translation' data-t-attributes='#{JSON.stringify(options.hash)}'>#{text}</span>"
|
||||
tag.htmlSafe()
|
||||
|
||||
Reference in New Issue
Block a user