mirror of
https://github.com/fenom-template/fenom.git
synced 2023-08-10 21:13:07 +03:00
236 B
236 B
Tag {cycle}
{cycle}
is used to alternate a set of values.
{foreach 1..10}
<div class="{cycle ["odd", "even"]}">
{/foreach}
{foreach 1..10}
<div class="{cycle ["odd", "even"] index=$i}">
{/foreach}