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