因为 github 自动把 html 解释了, 所以你直接看不到源代码. 需要点右上角的看源代码或者编辑才可以
add new file layout.html
I am from Layout
Yield area below
{{>yield}}
route.js
Router.configure({
layoutTemplate:'layout',
notFoundTemplate: 'pageNotFound'
});
Router.route('/', 'hello');
Router.route('test');
simple-router.html
Welcome to Meteor!
Click Me
test.html
4040404040404040404040404 not found