Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/templates/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/8/meteor/3.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Templates 我可以在Meteor JS中嵌套模板吗?_Templates_Meteor_Handlebars.js - Fatal编程技术网

Templates 我可以在Meteor JS中嵌套模板吗?

Templates 我可以在Meteor JS中嵌套模板吗?,templates,meteor,handlebars.js,Templates,Meteor,Handlebars.js,我对《流星》有点陌生,但它看起来很神奇 我希望能够嵌套模板并向模板传递参数,如下所示: <template name="parent"> <h1>Parent Header</h1> {{> child state="parent" }} </template> 父标题 {{>child state=“parent”} 我注意到accounts ui包做了这类事情,但我只是得到了一些错误。他们这样做:{{loginBut

我对《流星》有点陌生,但它看起来很神奇

我希望能够嵌套模板并向模板传递参数,如下所示:

<template name="parent">
    <h1>Parent Header</h1>
    {{> child state="parent" }}
</template>

父标题
{{>child state=“parent”}
我注意到accounts ui包做了这类事情,但我只是得到了一些错误。他们这样做:
{{loginButtons align=“right”}}
,它似乎来自一个处理程序? (来源:)


这是一种可行的筑巢方式吗?我需要使用一些漂亮的处理程序吗?

在模板引擎的当前实现中,您无法将参数传递给模板。但将来你会的。
不过,您可以进行简单的嵌套。

登录按钮是一个辅助功能,而不是一个模板名称。您是否参考过新闻稿或他们说有一天会提供的任何内容?