1
這是我的路線:鐵路由器和notFoundTemplate
this.route('showItem', {
path: '/item/:_id',
template: 'layout',
yieldTemplates: {
'content': {to: 'content'},
'item_details': {to: 'details'}
},
notFoundTemplate: 'notFound',
data: function() {
return null; //for test
}
})
而且notFound
模板,這很簡單:
<template name="notFound">
Not found!
</template>
而且我不明白,爲什麼總是呈現item_details
永不notFound
。
謝謝!現在正在工作,但是...... :-)是否有可能渲染'不發現'而不是'item_details'?因爲我的「內容」 - 帶有標記的地圖。我不想重繪地圖,只有細節部分 – none