#? stdtmpl(subsChar = '$', metaChar = '#')
#import xmltree, strutils, uri
#import ../types, ../formatters, ../utils, ../search
#include "tweet.nimf"
#
#proc renderProfileCard*(profile: Profile): string =
#end proc
#
#proc renderPhotoRail(username: string; photoRail: seq[GalleryPhoto]): string =
#for i, photo in photoRail:
#if i == 20: break
#end if
#end for
#end proc
#
#proc renderBanner(profile: Profile): string =
#if "#" in profile.banner:
#else:
#let url = getSigUrl(profile.banner, "pic")
${genImg(profile.banner)}
#end if
#end proc
#
#proc renderTimeline*(timeline: Timeline; profile: Profile; beginning: bool): string =
#var retweets: seq[string]
#var query = "?"
#if timeline.query.isSome: query = genQueryUrl(get(timeline.query))
#end if
#end proc
#
#proc renderProfile*(profile: Profile; timeline: Timeline;
# photoRail: seq[GalleryPhoto]; beginning: bool): string =
${renderBanner(profile)}
${renderProfileCard(profile)}
#if photoRail.len > 0:
${renderPhotoRail(profile.username, photoRail)}
#end if
#let link = "/" & profile.username
${renderTimeline(timeline, profile, beginning)}
#end proc
#
#proc renderConversation*(conversation: Conversation): string =
#end proc