Skip to content

Instantly share code, notes, and snippets.

@endash
Created August 16, 2013 15:05
Show Gist options
  • Save endash/6250715 to your computer and use it in GitHub Desktop.
Save endash/6250715 to your computer and use it in GitHub Desktop.
# application.handlebars
{{outlet}}
# main_layout.handlebars
<div class="hai-layoutz">
{{outlet}}
</div>
# home.handlebars
<div class="totes-different-layout>
Home
</div>
# ApplicationRoute
renderTemplate: function () {
this.render();
this.render('main_layout');
}
# MostRoutes
renderTemplate: function () {
this.render({into: 'main_layout'});
}
# HomeRoute
renderTemplate: function () {
this.render({into: 'application'})
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment