I have this simple element model and I'm trying to add dynamic class within loop. So every time a model outputs, It outputs dynamic class. Can't go for another loop within loop, in case I could, therefor It'd be easy.
{% set tags = slide.foodTags %}
{% if tags %}
<div>
{% for tag in tags %}
<span class="{# dynamic-class #}">
{{ tag.title }}
</span>
{% endfor %}
</div>
{% endif %}
{{ loop.index }}
helped. Thanks for concern @Peter Tell