Allowing route.render to render components


#1

Do you think that its is useful to allow the render function to take a component as a view to render ?
for example

App.PostRoute = App.Route.extend({
      renderTemplate: function() {
        this.render('my-component', {   // the template to render
          into: 'index',          // the template to render into
          outlet: 'comments',       // the name of the outlet in that template
          controller: 'blogPost'  // the controller to use for the template
        });
      }
    });

If you think it is useful maybe someone ( or myself ) could take a stab at a PR.


#2

You would loose the ability to trigger actions that cause transitions to another route. You’d essentially be stuck on one route after the component is rendered.


#3

Why this would happen?