2

我查看了 Meteor 和 Handlebars.js 的源代码,但找不到什么>。是帮手吗?例如在Meteor ( git ) 的todos 示例中

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

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

4

1 回答 1

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}}
于 2012-04-16T11:32:45.007 回答