Closed tomtom87 closed 7 years ago
Yield is the problem....
either have
<template name="aboutLayout">
<div class="layout home-layout">
<div class="layout home-layout">
{{> about }}
</div>
</div>
{{> footer}}
</template>
OR
<template name="termsConditionLayout">
<div class="layout home-layout">
<div class="layout home-layout">
{{> yield }}
</div>
</div>
{{> footer}}
</template>
Ah ok must specify the template name for this section got you
I am defining several routes and layouts. Everything is working fine in my app, untill I added a new route for terms, it will always only display the layout for the about us section. No matter how I configure this page.
Router.coffee
Templates:
No matter what happens the
aboutLayout
will display in place of thetermsLayout
when I am on the/terms
URL path. Why? I really need to fix this.