I have this template code:
{{#priceList}}
{{#last}}
<strong>{{currency}}</strong>
{{/last}}
{{^last}}
<del>{{currency}}</del>
{{/last}}
{{/finalPriceList}}
and I'm trying to go through this data:
priceList: [
{ price: 50, currency: '$50.00', last: false },
{ price: 25, currency: '$25.00', last: true }
]
All I want to do is output:
<del>$50.00</del> <strong>$25.00</strong>
Am I approaching this right? I've tried last as undefined instead of false as well.
My code outputs
<del>$50.00</del> {{/last}} <strong>$25.00</strong> <del>$25.00</strong> {{/last}}