{{# $template({name: 'main', context: 'ctx'}) }}
{{# $each({collection: ctx.children, item: 'item', key: 'i', animate: 'data-anim-state'}) }} {{/ $each }}
{{ $render({data: ctx, template: 'post-loop'}) }} {{/ $template }} {{# $template({name: 'post-loop', context: 'ctx', root: 'root'}) }} {{# $each({collection: ctx.posts, item: 'post', key: 'i'}) }}

name: {{post.user.name}}

{{post.content}}

{{# $if(post.user.id == root.user.id) }} {{/ $if }}

{{# $if(post.posts && post.posts.length > 0) }} {{ $render({data: post, template: 'post-loop'}) }} {{/ $if }}
{{/ $each }} {{/ $template }} {{ testChunk + '\}\}' }}