Created
December 3, 2014 20:08
-
-
Save garth/a8e5dc8804cbe43efc2f to your computer and use it in GitHub Desktop.
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('render-dynamic', function (name, context, options) { | |
// name was passed as a variable, but should be passed to render as a string | |
options.types[0] = "STRING"; | |
return Ember.Handlebars.helpers.render.call(this, name, context, options); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment