0
我遇到了Jade和Bootstrap的問題。我想佈局一些HTML格式如下:如何延遲Jade模板中的結束標記?
<bootstrap row>
<bootstrap col-sm-6>
<bootstrap col-sm-6>
</bootstrap row>
<bootstrap row>
<bootstrap col-sm-6>
<bootstrap col-sm-6>
</bootstrap row>
等等
我需要這一個每個語句內發生,但是我無法得到它的工作相當如何我想它。它使每個迭代結束後關閉排,所以我得到:
<bootstrap row>
<bootstrap col-sm-6>
</bootstrap row>
<bootstrap row>
<bootstrap col-sm-6>
</bootstrap row>
這是玉模板我目前有:
div.col-sm-12
#items
- each item, x in items
div.article.col-sm-6
div.title
h3= item.name + " (" + item.cost + ")"
p= item.stats
p= item.recipe
p= item.ability
p= "Purchased from " + item.category
所以,每次2次迭代,我需要換兩個同事sm-6項目連續。
任何幫助,將不勝感激。
謝謝。