Skip to content

Instantly share code, notes, and snippets.

@jrgleason
Created April 16, 2014 01:51
Show Gist options
  • Save jrgleason/10797297 to your computer and use it in GitHub Desktop.
Save jrgleason/10797297 to your computer and use it in GitHub Desktop.
Trying to get Jade to do nice bootstrap rows
each product, pindex in category.products
if((pindex % 3) === 0)
.row
.col-sm-4
+product-sm
// should produce
<row>
<div class="col-sm-4>
+product-sm
</div>
<div class="col-sm-4>
+product-sm
</div>
<div class="col-sm-4>
+product-sm
</div>
</row>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment