【发布时间】:2016-11-18 09:50:38
【问题描述】:
我有一个包含以下内容的 hbs 文件
//some ohter code
-------------------------------------
{{#each items}}
<li>
{{name}}
{{#if items}}
<ul>
//partial should go here
</ul>
{{/if}}
</li>
{{/each}}
---------------------------------------------------
我想使用same section 递归替换//partial should go here。我怎样才能做到这一点?感谢任何帮助
【问题讨论】:
-
听起来你想把它放在一个组件中
标签: recursion ember.js handlebars.js