Day 282
How to loop through a large data block in a HTML email.
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
<container>
<row class="content-area">
<columns class="first-offer">
{{#each kayakemail.offers}}
<row class="offer">
<columns>
<img src="{{this.image}}" />
<p>
{{this.location}}: {{this.description}}
</p>
<span class="save-amount">{{this.saveAmount}}</span>
<span class="tiny-info">{{this.tinyInfo}}</span>
<span class="price">{{this.price}}</span>
<a href="{{this.link}}" class="button">See Deal</a>
</columns>
</row>
{{/each}}
</columns>
</row>
</container>
#CodingPhase #TheCodingWay #365CodingPhaseChallenge
**********
<container>
<row class="content-area">
<columns class="first-offer">
{{#each kayakemail.offers}}
<row class="offer">
<columns>
<img src="{{this.image}}" />
<p>
{{this.location}}: {{this.description}}
</p>
<span class="save-amount">{{this.saveAmount}}</span>
<span class="tiny-info">{{this.tinyInfo}}</span>
<span class="price">{{this.price}}</span>
<a href="{{this.link}}" class="button">See Deal</a>
</columns>
</row>
{{/each}}
</columns>
</row>
</container>
Comments
Post a Comment