Created
April 16, 2014 01:51
-
-
Save jrgleason/10797297 to your computer and use it in GitHub Desktop.
Trying to get Jade to do nice bootstrap rows
This file contains hidden or 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
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