Minor html size optimization
This commit is contained in:
parent
cd4e873a45
commit
2a5e0a3f54
1 changed files with 5 additions and 0 deletions
|
@ -91,7 +91,9 @@
|
||||||
#end proc
|
#end proc
|
||||||
#
|
#
|
||||||
#proc renderTweet*(tweet: Tweet; class=""): string =
|
#proc renderTweet*(tweet: Tweet; class=""): string =
|
||||||
|
#if class.len > 0:
|
||||||
<div class="${class}">
|
<div class="${class}">
|
||||||
|
#end if
|
||||||
<div class="status-el">
|
<div class="status-el">
|
||||||
<div class="status-body">
|
<div class="status-body">
|
||||||
${renderHeading(tweet)}
|
${renderHeading(tweet)}
|
||||||
|
@ -110,4 +112,7 @@
|
||||||
${renderStats(tweet)}
|
${renderStats(tweet)}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
#if class.len > 0:
|
||||||
|
</div>
|
||||||
|
#end if
|
||||||
#end proc
|
#end proc
|
||||||
|
|
Loading…
Reference in a new issue