I thought that {% cycle 'a' 'b' as mycycle %} was supposed to just set the variable {{ mycycle }} and not output anything to the template.
However, the following template (with myrange=[1, 2, 3]): {* start template *} <ul> {% for i in myrange %} {% cycle 'a' 'b' as mycycle %} <li>{{ mycycle }}</li> {% endfor %} </ul> {* end template *} outputs: <ul> 1 <li>1</li> 2 <li>2</li> 3 <li>3</li> </ul> Is this a bug or the desired behavior? -- You received this message because you are subscribed to the Google Groups "Django users" group. To post to this group, send email to django-us...@googlegroups.com. To unsubscribe from this group, send email to django-users+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/django-users?hl=en.