Tags


<t t-foreach="[1, 2, 3]" t-as="line">
    <li t-attf-class="row {{ line_parity }}"><t t-esc="line"/></li>
</t>

will be rendered as:

<li class="row even">1</li>
<li class="row odd">2</li>
<li class="row even">3</li>
Advertisements