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

URL for views as a flat attribute #76

Open
tracend opened this issue Feb 15, 2014 · 0 comments
Open

URL for views as a flat attribute #76

tracend opened this issue Feb 15, 2014 · 0 comments

Comments

@tracend
Copy link
Member

tracend commented Feb 15, 2014

The url of an html fragment can be set through the options of the view, but there's no reason why it shouldn't be able to be set directly, as part of the extend method:

var view = APP.View.extend({
    options: {}, // this is where 'url' has to live currently...
    url: "assets/html/fragment.html"
});

This follows the same convention of Model/Collection in regular Backbone.js

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

No branches or pull requests

1 participant