我已经设置了路线
this.route('force', {
path: '/force',
template: 'showForce',
layoutTemplate: 'mainpanel'
});
模板showForce
非常简单
<template name="showForce">
<p>show force</p>
</template>
和mainPanel
模板一样
<template name="mainpanel">
{{ yield }}
</template>
但是该模板有这样的父级
<template name="page_logged_in">
{{> header}}
<div id="side-panel">
{{> sidepanel}}
</div>
<div id="main-panel">
{{> mainpanel}}
</div>
</template>
该路由确实将模板呈现到页面但不在yield
位置中。它显示为page_logged_in
模板的 DOM 兄弟。
任何想法为什么会发生这种情况?
谢谢