Allow GJS/GTS route templates
In the process of starting to write guides content for template tag, @kategengler and I decided it's too clunky to force new learners to mix HBS and GJS.
In practice, experienced ember devs who are adopting template tag are often using ember-route-template so they can author routes in template tag. We considered just proposing ember-route-template for the default blueprint, but then realized that in that case it's actually just much better to build the same feature into ember.
AFAIK, this PR is the full implementation and it's ready to go, pending an RFC.
This does not preclude also doing a more comprehensive Route Manager API that would cleanup more about routes. But this seems like an important smallest step we can make today to improve the experience.
I am a fan, and this reduces the divergences in the TS support PR for the v2 app blueprint
cc @chancancode: this would essentially copy your ember-route-template implementation into ember.
Yea, I think it definitely should be built-in and the wrapper shouldn't be necessary. Mostly just have to decide whether we are happy enough with @model and @controller for now, and if those somehow locks us into an undesirable path. Couldn't think of any obvious problems off the top of my head, generally +1.
RFC: https://github.com/emberjs/rfcs/pull/1046
It is on my personal TODO list, but beyond what I commented above, I suspect we can simplify this code quite a bit (and clearly mark the legacy code path) by flipping it around – have the happy path always just assume and invoke a component with @controller and @model, and wrap/upgrade any legacy templates as a special component as needed.
This was replaced by https://github.com/emberjs/ember.js/pull/20800