Hi Everyone,
I'm developing in SCA Kilimanjaro and I'm running into an issue that I'm not sure how to fix. I'm rendering data in a table in Handlebars but the detail template is being wrapped in a div which is messing up the rendering. In my "list" template I have:
<table>
<thead>
<tr>
<th>{{translate 'Subscription Id'}}</th>
<th>{{translate 'Sku'}}</th>
<th>{{translate 'Quantity'}}</th>
</tr>
</thead>
<tbody data-view="Subscriptions.Collection"></tbody>
</table>
In my "details" template I have:
{{#each this}}
{{#subData}}
<tr>
<td>{{id}}</td>
<td>{{sku}}</td>
<td>{{qty}}</td>
</tr>
{{/subData}}
{{/each}}
When it renders I have:
<table>
<thead>
...
</thead>
<tbody data-view="Subscriptions.Collection">
<div>
<tr> ... </tr>
<tr> ... </tr>
</div>
</tbody>
</table>
which renders as
(ignore the extra columns). The div is causing the the row data to be rendered in the Subscription Id column. If I inspect it in Chrome dev tools and remove the div then it renders just fine.
Subscription.Collection just retrieves the data for rendering, nothing special there and certainly no markup.
Has anyone else ever heard or run into this before? I appreciate any and all help.
Thanks!