Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Single Page App - Products Template for LoDash
<ul>
<% _.forEach(products, function(product) { %>
<li>
<strong><%- product.name %></strong>
<span>( Cateogry: <span class="value"><%- product.category %></span> )</span>
<span>( Link: <a href='"#/products/<%- product.id %>'>
<%- product.name %> Details</a> )</span>
<div>Description: <%= product.description %></div>
<div>Price: <%- product.price %></div>
</li>
<% }); %>
</ul>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment