Skip to content

Instantly share code, notes, and snippets.

@d2kagw
Created June 20, 2013 21:49
Show Gist options
  • Save d2kagw/5827003 to your computer and use it in GitHub Desktop.
Save d2kagw/5827003 to your computer and use it in GitHub Desktop.
Handlebars helper which returns an objects value matching the supplied key
window.Ember.Handlebars.registerBoundHelper 'valForKey', (obj, key) ->
obj.get(key)
@d2kagw
Copy link
Author

d2kagw commented Jun 20, 2013

Unfortunately, the above example doesn't bind to the property though, so there's no 'live updating' of the keys value :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment