【发布时间】:2016-07-04 11:04:30
【问题描述】:
大家好,我正在做一个关于扩展用户类的教程, Link教程1 在我尝试的每条路径中,我总是得到一个空白页,我不明白为什么。 任何帮助,将不胜感激。 这是我的 routes.js 文件:
FlowRouter.route('/', {
name: 'home',
action: function() {
BlazeLayout.render("mainLayout", {
content: "home"
});
}
});
FlowRouter.route('/login', {
name: 'login',
action: function() {
BlazeLayout.render("mainLayout", {
content: "login"
});
}
});
FlowRouter.route('/register', {
name: 'register',
action: function() {
BlazeLayout.render("mainLayout", {
content: "register"
});
}
});
这是我的 main-layout.html
<template name="mainLayout">
{{>Template.dynamic template=content}}
</template>
这是我的仓库的链接:https://bitbucket.org/mmrj9/hubapp/src
【问题讨论】:
标签: meteor meteor-blaze flow-router