Created
December 19, 2014 01:24
-
-
Save devdays/493856f41af45e04d0da to your computer and use it in GitHub Desktop.
Single Page App - Products Template for LoDash
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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