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>

Comments

Popular posts from this blog

Day 1

Day 365 + 1

Day 365 + 2