1
在模板中使用yield的這兩個路由之間有什麼區別?對我來說,兩者都是這樣做的:YieldRouter中的yieldTemplates和渲染之間的區別
Router.route('/', {
name: 'home',
action: function() {
this.render('content', { to: 'content' });
this.render('navigation', { to: 'navigation' });
}
});
Router.route('/', {
name: 'home',
yieldTemplates: {
'navigation': { to: 'navigation' },
'content': { to: 'content' }
}
});