テンプレートが明示的に設定された動的な Iron ルートがありますが、Iron ルーターはテンプレートの代わりにパスをレンダリングしようとします。
http://localhost:3000/blog/example-post
「Blog:permalink」または「blog:permalink」という名前のテンプレートが見つかりませんでした。あなたはそれを定義しましたか?
Router.route('/blog/:permalink'), {
template: 'blogPost',
name: 'blogPost',
path: '/blog/:permalink',
data: function () {
return Blogs.findOne({ permalink: this.params.permalink, published: true });
}
}
Router.route('blog'), {
path: '/blog',
waitOn: function () {
return [
Meteor.subscribe('blogs')
]
}
}