我有一个树状结构的评论我想使用Ember CLI中的句柄渲染。每条评论都可以有一组无限的答复,每个答复都有无限量的答复,就像您在reddit上所做的那样。我有以下文件'comments.hbs'。递归渲染使用Ember CLI的句柄模板
<div class="comments">
{{#each comments}}
<div class="comment">
<span><b>{{author}}</b></span> <span>{{showdown-addon text}}</span>
</div>
{{recursively-call-this-template-somehow-with-new-context replies}}
{{/each}}
</div>
任何人都有任何想法我可以用Ember CLI做到这一点?我已经看到了一些使用{{> template-name}}的解决方案,但还没有成功实现它。
我看到你很少提供你的问题的答案的反馈。如果答案有帮助,你可以对它表示感谢,并将其标记为已接受,如果它解决了你的问题。 – givanse 2014-11-23 16:07:36