Site Essentials for Statamic

Site Essentials for Statamic

se_each Modifier

The se_each modifier can be used to render another template for each item within an array. The rendered template will receive the full context scope at the time the modifier was invoked, as well as the data from the item being iterated.

1{{# Using a traditional loop. #}}
2{{ loop_variable }}
3 {{ partial:my/partial /}}
4{{ /loop_variable }}
6{{# Using the se_each modifier. #}}
7{{ loop_variable | se_each('my/partial') /}}

Some absolutely amazing

The following amazing people help support this site and my open source projects ♥️
If you're interesting in supporting my work and want to show up on this list, check out my GitHub Sponsors Profile.