I am trying to use json arrays in my email using Guide template language and the issue is I need to stop showing the divider line on the last iteration of {{#each}} loop. I have tried {{@last}} or any other private variables within an {{#each}} block.
{{.dataobject content type=variable source=@content_topstories}}
{{.data}}
{"target":"@content_topstories"}
{{/data}}
{{/dataobject}}
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td style="padding: 15px 0 15px 0;">
<a style="text-transform: uppercase; text-decoration: none; font-weight: 700; font-family: sans-serif; color: #5c5c5c; font-size: 17px;" href=""></a>
</td>
</tr>
</table>
{{#each content}}
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td style="padding-bottom: 5px;">
<a style="color: #0972d3; font-weight: 200; line-height: 29px; font-size: 24px; text-decoration: none; font-family: sans-serif" href="{{=RedirectTo(itemURL)}}">{{itemHeading}}</a>
</td>
</tr>
<tr>
<td>
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td style="font-family: sans-serif; color: #5c5c5c; line-height: 20px; font-size: 16px; padding-bottom: 15px; padding-top: 0; padding-right: 10px;">{{itemText}}
</tr>
</table>
{{#if empty(itemImage)}}
{{.else}}
<table border="0" cellspacing="0" cellpadding="0" width="100%">
<tr>
<td style="padding-bottom: 25px;">
<a href="{{=RedirectTo(itemURL)}}"><img class="mobile" style="background: #eee; width:100%; height:auto!important; display: block;" border="0" src="{{itemImage}}" width="100%" height="auto"></a>
</td>
</tr>
</table>
{{/if}}
</td>
</tr>
</table>
{{#if @last}}
<table border="0" cellspacing="0" cellpadding="0" width="100%"><tr><td style="font-size:1px; line-height:1px; border-top: 2px solid #d3d3d3; padding-bottom: 25px;"> </td></tr></table>
{{/if}}
{{/each}}