所以我稱爲 '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>
和神奇,它開始工作。
流星是否在模板名稱中強制駱駝套管?