Created
June 20, 2013 21:49
-
-
Save d2kagw/5827003 to your computer and use it in GitHub Desktop.
Handlebars helper which returns an objects value matching the supplied key
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
window.Ember.Handlebars.registerBoundHelper 'valForKey', (obj, key) -> | |
obj.get(key) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Unfortunately, the above example doesn't bind to the property though, so there's no 'live updating' of the keys value :(