Switched from Handlebars to Handybars

This commit is contained in:
Jocelyn Badgley (Twipped)
2020-05-13 11:45:26 -07:00
parent 4e4b7758f6
commit 2beec58657
63 changed files with 275 additions and 262 deletions

View File

@@ -1,7 +1,6 @@
<div class="tweet{{#is ids.length 1}} single{{/is}} {{className}}" style="{{style}}">
{{#each ids}}
<div class="tweet-item" data-id="{{this}}">{{#with (lookup ../tweets this)}}
<div class="tweet-item" data-id="{{this}}">{{#with tweets[this]}}
<a class="tweet-link" href="https://twitter.com/{{user.screen_name}}/status/{{id_str}}" target="_blank">{{icon 'link'}}</a>
<a class="tweet-header" href="https://twitter.com/{{user.screen_name}}" target="_blank">
<b><img src="{{rev user.avatar.output}}" alt=""></b>
@@ -13,13 +12,13 @@
<span>@{{user.screen_name}}</span>
<img src="/tweets/logo.svg" alt="Twitter Logo" class="tweet-logo">
</a>
{{#if quoted_status_id_str}}{{#with (lookup ../../tweets quoted_status_id_str)}}
{{#if quoted_status_id_str}}{{#with tweets[quoted_status_id_str]}}
<div class="tweet-quoted">
<a href="https://twitter.com/{{user.screen_name}}/status/{{id_str}}">
<strong>{{{user.name_html}}}</strong>
<span>@{{user.screen_name}}</span>
</a>
{{#if quoted_status_id_str}}{{#with (lookup ../../../tweets quoted_status_id_str)}}
{{#if quoted_status_id_str}}{{#with tweets[quoted_status_id_str]}}
<div class="tweet-quoted">
<a href="https://twitter.com/{{user.screen_name}}/status/{{id_str}}">
<strong>{{{user.name_html}}}</strong>