Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Handlebars helpers builtin as well as custom
{{#books}}
{{#if price}}
<tr>
<td>{{name}}</td>
<td>{{price}}</td>
<td>{{formatName author}}</td>
<td>
{{> getButton className="edit-book btn btn-warning" text="Edit"}}
{{> getButton className="delete-book btn btn-danger" text="Delete"}}
</td>
</tr>
{{/if}}
{{/books}}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment