-
-
Notifications
You must be signed in to change notification settings - Fork 251
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
Add auto Ember.view creation to Templates? #50
Comments
Should this be on Ember.js instead of ember-rails? |
I think you're assuming a one-to-one view-to-template relationship that doesn't always exist. Maybe we could have a generator that generates both? I would rather be explicit about view class definition than have one created implicitly for each template generated. |
+1 for @tomdale I am definitely against a one-to-one view-to-template relationship. If you vant a generator for this, do it. |
Ok, thanks guys. |
Proposed new feature:
As a developer, I don't want to create a template, then separately define a view that uses that template.
Acceptance criteria:
The handlebars (.hb, .hjs) file handler should (in addition to creating a valid Ember template), also create a corresponding Ember view.
For example, the file "app/assets/javascript/ember/templates/post_list.hb" should create a template AND a view for the application. The view might be specified as the following:
Any thoughts?
If I get a few +1's I'll be happy to start implementing.
The text was updated successfully, but these errors were encountered: