Replies: 1 comment 1 reply
-
I'm not sure what HTML you want, but you can use <script type="template/handlebars" id="template"><table style="border-collapse: collapse; width: 100%;" border="1">
<thead>
<tr>
<th>Name</th>
<th>Price</th>
<th>Quantity</th>
<th>Total</th>
</tr>
</thead>
<tbody>
{{#each itemList}}
<tr>
<td>{{name}}</td>
<td>{{price}}</td>
<td>{{qty}}</td>
<td>{{total}}</td>
</tr>
{{#unless @last}}
<tr>
<td colspan="4"></td>
</tr>
{{/unless}}
{{/each}}
</tbody>
</table></script> |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
JS fiddle link of the issue.
I have a table where first row of the table each is defined. and in the second row tokens are defined, in the last row each declaration is done
While compiling two rows of each declaration and each ending declaration(ie first row and last row) is not removed. Is there any way to remove those?
Beta Was this translation helpful? Give feedback.
All reactions