Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow accessing model attributes from templates. #367

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Allow accessing model attributes from templates. #367

wants to merge 1 commit into from

Conversation

alemangui
Copy link
Contributor

Hello,

I was wondering if it would be good to allow accessing the model's attributes directly from the template without the need of explicitly setting the templateData. I imagine this case is among the most common ones.

To exemplify, this fiddle tries to access the firstName attribute of the Backbone model the form is bound to: http://jsfiddle.net/WGg32/1/

In order for it to work, it must explicitly set the templateData: http://jsfiddle.net/k4d73/1/

Would something like this be of interest?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant