Created
March 10, 2015 14:37
-
-
Save llun/cc289fd8c0a5dd080442 to your computer and use it in GitHub Desktop.
Ember.js helper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Handlebars.registerHelper('helperName', function(param1, param2, options) { | |
return "HTML output for this helper" | |
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Ember.Handlebars.registerHelper('helperName', { | |
isHTMLBars: true, | |
isHelper: true, | |
function(params, hash, options, env) { | |
return "HTML output for this helper" | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment