Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- {% if items %}
- <{{ type }}
- {{- items.attributes.class ? ' class="{{ items.attributes.class }}"' : '' -}}
- {{- items.attributes ? " items.attributes" : '' -}}
- >
- {% for item in items %}
- <li class="{{ item.attributes.class }} {{ cycle(['even', 'odd'], loop.index) }}{{ loop.first ? ' first' : '' }}{{ loop.last ? ' last' : '' }}" {{ item.attributes }}>
- {{- item -}}
- </li>
- {% endfor %}
- </{{ type }}>
- {% endif %}
Advertisement
Add Comment
Please, Sign In to add comment