I'm using mandrillapp to send massive-customized email using send-api. My template is using handlebar syntax recently supported by mandrill: https://mandrill.zendesk.com/hc/en-us/articles/205582537 and the #each loop I'm using seems to work well.
Now I need to iterate little bit better: i.e. looking if the item in the each loop is odd or even, if is the last or something like that.
<div class="entry">
{{#each products}}
<div class="odd"> <!-- how to change class to even?-->
<div>{{name}}</div>
<div>{{price}}€</div>
</div>
{{/each}}
</div>
Note: I'm not talking about "handlebarsjs" but only about the handlebar syntax available in mandrill templates