Support: override layout?
TheEmpty opened this issue · 3 comments
TheEmpty commented
I was looking through the code and didn't see a way to overwrite the layout for a render. Am I right about that? My problem is that my root page has a different layout (or no layout) than the rest of my pages. I was expecting something like
this.render('hero-page', {
title: "Our Product",
template: null
});
jwilm commented
You can specify {{!< layoutName }}
somewhere in your template hero-page to override the default layout. Maybe you can add a layout named empty which only has {{{body}}}
in it for the blank pages.
TheEmpty commented
Thanks :)
mgol commented
I had this issue as well. The empty template hack is a nice one but IMO it'd be more intuitive to have it built-in.