шаблон
шаблон
<h2>Корзина</h2>
<div id="card">
{{#if courses.length}}
<table>
<thead>
<tr>
<th>название</th>
<th>Колличество</th>
<th>дествие</th>
</tr>
</thead>
<tbody>
{{#each courses}}
<tr>
<td>{{title}}</td>
<td>{{count}}</td>
<td><a href="#" class="btn"><i class="material-icons js-remove" data-id="{{id}}">delete</i></a></td>
</tr>
{{/each}}
</tbody>
</table>
<p><strong>Цена: </strong><span class="price"> {{price}}</span></p>
{{else}}
<p>Корзина пуста</p>
{{/if}}
</div>