我查看过Meteor和Handlebars.js的来源,但找不到>
的内容。它是帮助者吗?例如,在todos example of Meteor(git):
<div id="lists">
{{#each lists}}
{{> list_item}}
{{/each}}
</div>
跟进:handlebars.js Meteor包解析模板,当它找到{{> some_partial}}
时,会放置some_partial
模板。看看packages/handlebars/parse.js
答案 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}}