Reputation: 11
I have this code in underscore.js template Can anybody help me with how it can be written using handlebar.js templates instead of underscore?
<% _.each(cruds, function (crud) { %>
which gets a crud list and displays it as follows
<tr>
<td><%= crud.id %></td>
<td><%= crud.name %></td>
<td><%= crud.email %></td>
<td><%= crud.phone %></td>
<td><%= crud.address %></td>
</tr>
<% }); %>
Same for this line of code as well
<% if (_.isEmpty(cruds)){ %>
Any Help would be appreciated
Upvotes: 1
Views: 68