所以我称为 'find_project' 的路线如下:流星是否为模板名称强制使用CamelCase?
Router.map(function() {
this.route("/find_project");
}
而且我的模板是:
<template name="find_project">
<h1>Find project page</h1>
</template>
显然,人们可能会期望模板的工作,对不对?没有!
Couldn't find a template named "FindProject" or "findProject". Are you sure you defined it?
现在我驼峰模板名称,像这样:
<template name="findProject">
<h1>Find project page</h1>
</template>
和神奇,它开始工作。
流星是否在模板名称中强制骆驼套管?