【发布时间】:2014-06-09 10:04:28
【问题描述】:
Meteor 0.8.0.1 - 我从文档中了解到的,这个最小的应用程序
<head>
<title>Meteor Routing Test</title>
</head>
<body>
{{> renderPage}}
</body>
<template name="hello">
<h1>Hello World!</h1>
</template>
和
Meteor.Router.add({
'/hi':'hello',
});
应该在localhost:3000/hi 上获取并渲染名为hello 的模板。相反,文本 hello 被渲染成一个空的 html(即没有加载流星标头)。
我错过了什么?
【问题讨论】: