let comments = [ { 'content': 'Cool post!', 'children': [ { 'content': 'True!', 'children': [] } ] }, { 'content': 'I don\'t agree with the second section..', 'children': [ { 'content': 'You\'re wrong!', 'children': [ { 'content': 'No, YOU are wrong!', 'children' : [] } ] } ] }, ] procedure render_comment_subtree(comment) {

\{escape comment.content}

\for child in comment.children: render_comment_subtree(child)
}

A Very Cool Post

Section 1

This language is cool

Section 2

You should try it out

\for comment in comments: render_comment_subtree(comment)