I have a webpage where I am looping,and using cycle inside the loop.
{% for o in something %}
{% for c in o %}
<div class="{% cycle 'white' 'black'%}"></div>
{% endfor %}
Now, this means everytime inside the loop, first div tag gets white.But,what I want is to alternate between white and black i.e. start with white, then next time when inside the loop start the first div tag with black.Is it possible to achieve here?