#? stdtmpl(subsChar = '$', metaChar = '#') #import xmltree, strutils, uri #import ../types, ../formatters, ./tweet # #proc renderConversation*(conversation: Conversation): string =
#if conversation.before.len > 0:
#for tweet in conversation.before: ${renderTweet(tweet)} #end for
#end if
${renderTweet(conversation.tweet)}
#if conversation.after.len > 0:
#for tweet in conversation.after: ${renderTweet(tweet)} #end for
#end if
#if conversation.replies.len > 0:
#for thread in conversation.replies:
#for tweet in thread: ${renderTweet(tweet)} #end for
#end for
#end if
#end proc