I have a tree like structure of comments I would like to render using handlebars in Ember CLI. Each comment can have an infinite set of replies, with each reply having an infinite amount of replies, much like you have on reddit. I have the following file 'comments.hbs'.
<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>
Anyone have any idea how I can do this with Ember CLI? I've seen some solutions using {{> template-name}} but haven't managed to get it working.