Skip to content

Instantly share code, notes, and snippets.

@gdeer81
Last active August 29, 2015 14:23
Show Gist options
  • Save gdeer81/1a87b20b628b9becd7c8 to your computer and use it in GitHub Desktop.
Save gdeer81/1a87b20b628b9becd7c8 to your computer and use it in GitHub Desktop.
<!-- server passes in a collection of product maps -->
<!-- controller now sends a collection of collections of product maps, specifically (partition-all 4 products) -->
{% for product-partition in partitioned-products %}
{% for product in product-partition %}
<div class="col-sm-10 col-sm-offset-2">
<div class="row">
<div class="col-sm-3" style="height:250px;">
<p>{{product.name}}</p>
<p>Price ${{product.price}}</p>
</div>
</div>
</div>
{% endfor %}
{% endfor %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment