It is possible to have whitespace in an Ember.Object‘s field name, but how to render its value?
The following JSFiddle illustrates my aim: http://jsfiddle.net/MikeAski/aTpz4/
Any idea?
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
I think this is not possible, since for Handlebars it looks like you want to use a helper named
my.Also in your example an error
Uncaught Error: Handlebars error: Could not find property 'my' on object <.MyView:ember147>is thrown.You could write your own Handlebars helper, see http://jsfiddle.net/pangratz666/KAsNN/
Handlebars:
JavaScript:
The helper above is not bindings aware. There is a Pull Request for this: https://github.com/emberjs/ember.js/pull/615