Simple array

An example with the render tag and some datas declared in a variable.

output

Name: orange

Name: apple

Name: peach

input


{% assign fruits = "orange, apple, peach" | split: ',' %}
{% render 'components/array' for fruits as name %}

components/array.liquid

<article>
    <p>Name: {{ name }}</p>
</article>