Skip to content

Instantly share code, notes, and snippets.

@krishagel
Created October 7, 2014 01:08
Show Gist options
  • Save krishagel/158ea1113c264a9026ea to your computer and use it in GitHub Desktop.
Save krishagel/158ea1113c264a9026ea to your computer and use it in GitHub Desktop.
//application controller:
import Ember from 'ember';
export default Ember.Route.extend({
renderTemplate: function() {
// Render default outlet
this.render();
// render extra outlets
this.render("topnav", {
outlet: "topnav",
into: "application",
controller: "login"
});
this.render("footer", {
outlet: "footer",
into: "application",
controller: "login"
});
}
});
Then I have a topnav.hbs file in the root of the templates folder in my application.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment