Discussion
% for thread in threads:
${thread['title']}
${thread['body']}
${time_ago_in_words(parse(thread['updated_at']))} ago by user No.${thread['user_id']}
${render_comments(thread['children'])}
% endfor
<%def name="render_comments(comments)"> % for comment in comments:
${comment['body']}
${time_ago_in_words(parse(comment['updated_at']))} ago by user No.${comment['user_id']}
${render_comments(comment['children'])}
% endfor