0
林入门Meteor,我用铁路由器操作路线.. 所以我想通过一个变量的模板:流星传递变量,铁路线
Router.route('/foo', function(){
this.render('foo', {name: 'Stack'});
});
我怎么能显示在变量name
模板FOO:
<template name="foo">
<h2>Hi bro, how i can show the variable name here ?? </h2>
</template>
我的项目文件夹的结构如下:
/client
---/views
------foo.html
---/layout
------layout.html
/public
/server
的layout.html:
<template name="layout">
{{> yield}}
</template>
任何解决方案,请:)