Skip to content

Instantly share code, notes, and snippets.

@llun
Created March 10, 2015 14:37
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save llun/cc289fd8c0a5dd080442 to your computer and use it in GitHub Desktop.
Save llun/cc289fd8c0a5dd080442 to your computer and use it in GitHub Desktop.
Ember.js helper
Ember.Handlebars.registerHelper('helperName', function(param1, param2, options) {
return "HTML output for this helper"
})
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