Created
May 22, 2014 14:35
-
-
Save tobob/363ffed1929fec2ed587 to your computer and use it in GitHub Desktop.
Handlebars to testing strings
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.registerBoundHelper 'testing-helper', (el0)-> | |
new Handlebars.SafeString("<b>Debug Handlebar! 0 args</b> #{el0}") | |
Ember.Handlebars.registerBoundHelper 'testing-helper-1', (el0)-> | |
new Handlebars.SafeString("<b>Debug Handlebar! 1 arg</b> #{el0}") | |
Ember.Handlebars.registerBoundHelper 'testing-helper-2', (el0, el1)-> | |
new Handlebars.SafeString("<b>Debug Handlebar! 2 args</b> #{el0} #{el1}") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment