With the current version of the ember router, you can define a route handler like so:
App.HomeRoute = Ember.Route.extend({
renderTemplate: function() {
this.render('home', {into: "application", outlet: "body"});
}
});
Older builds would allow you to disconnect a view from an outlet on the exit state of a route like this:
exit: function(router){
router.get('applicationController').disconnectOutlet('chatroom');
}
However, as of router v2, the disconnectOutlet method no longer works (I assume because it was lumped together with the connectOutlet(s) method(s).
So how do you disconnect a view now? Are you supposed to render a blank template into the outlet?