#? stdtmpl(subsChar = '$', metaChar = '#') #import xmltree #import ../model #import user # #proc `$!`(text: string): string = escape(text) #end proc # #proc renderMain*(body: string): string = # result = "" Tweeter written in Nim ${body} #end proc # #proc renderLogin*(): string = # result = ""
Login Please type in your username...
#end proc # #proc renderTimeline*(username: string, messages: openArray[Message]): string = # result = ""

${$!username} timeline

New message
${renderMessages(messages)} #end proc