def cycle(context, *cyclevars):
return itertools_cycle(cyclevars).next()<EOL>
Cycles among the given strings each time this tag is encountered.

Within a loop, cycles among the given strings each time through
the loop::

    {% for o in some_list %}
        <tr class="{% cycle 'row1' 'row2' %}">
            ...
        </tr>
    {% endfor %}

Outside of a loop, give the values a unique name the first time you call
it, then use that name each sucessive time through::

        <tr class="{% cycle 'row1' 'row2' 'row3' as rowcolors %}">...</tr>
        <tr class="{% cycle rowcolors %}">...</tr>
        <tr class="{% cycle rowcolors %}">...</tr>

You can use any number of values, separated by spaces. Commas can also
be used to separate values; if a comma is used, the cycle values are
interpreted as literal strings.