什么是“>” Meteor Handlebars.js模板中的运算符?

时间:2012-04-16 11:28:28

标签: handlebars.js meteor

我查看过Meteor和Handlebars.js的来源,但找不到>的内容。它是帮助者吗?例如,在todos example of Meteorgit):

<div id="lists">
    {{#each lists}}
        {{> list_item}}
    {{/each}}
</div>

跟进:handlebars.js Meteor包解析模板,当它找到{{> some_partial}}时,会放置some_partial模板。看看packages/handlebars/parse.js

1 个答案:

答案 0 :(得分:3)

我是一个部分电话

https://github.com/janl/mustache.js

Whereas in ERB you may have this:

<%= partial :next_more, :start => start, :size => size %>

Mustache requires only this:

{{> next_more}}