Add {{ loop.odd? }}
and {{ loop.even? }}
properties to the for loop variable
#201
Labels
Milestone
{{ loop.odd? }}
and {{ loop.even? }}
properties to the for loop variable
#201
Description
In order to make it easier to implement specific templates with for loops, let's ensure that the
loop
contextual variable also providesodd?
andeven?
attributes.For example:
The text was updated successfully, but these errors were encountered: