#? stdtmpl(subsChar = '$', metaChar = '#')
#import xmltree, strutils, uri, htmlgen
#import ../types, ../formatters, ../utils
#import ./tweet
#
#proc renderProfileCard*(profile: Profile): string =
#let pic = profile.getUserpic().getSigUrl("pic")
#let smallPic = profile.getUserpic("_200x200").getSigUrl("pic")
${linkUser(profile, "h1", class="profile-card-name", username=false)}
${linkUser(profile, "h2", class="profile-card-username")}
#end proc
#
#proc renderBanner(profile: Profile): string =
#if "#" in profile.banner:
#else:
#let url = getSigUrl(profile.banner, "pic")
#end if
#end proc
#
#proc renderTimeline*(tweets: Tweets; profile: Profile; beginning: bool): string =
#end proc
#
#proc renderProfile*(profile: Profile; tweets: Tweets; beginning: bool): string =
${renderBanner(profile)}
${renderProfileCard(profile)}
${renderTimeline(tweets, profile, beginning)}
#end proc