#13567: cycle tag with 'as' shouldn't return a value
---------------------------------------------+------------------------------
Reporter: anentropic | Owner: nobody
Status: new | Milestone:
Component: Template system | Version: SVN
Resolution: | Keywords:
Stage: Design decision needed | Has_patch: 1
Needs_docs: 0 | Needs_tests: 0
Needs_better_patch: 0 |
---------------------------------------------+------------------------------
Comment (by cootetom):
I've implemented this patch as it's something I needed since upgraded to
1.2. However I felt the syntax used to silence the cycle tag output wasn't
very readable so I changed it slightly to that I could write {% cycle
'row1' 'row2' 'row3' as rowcolors silent %} in my templates instead of
using the number 1 or 0!
Maybe something to consider if this patch get's placed into the main
branch. Thanks for the patch!
--
Ticket URL: <http://code.djangoproject.com/ticket/13567#comment:3>
Django <http://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
--
You received this message because you are subscribed to the Google Groups
"Django updates" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/django-updates?hl=en.