#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 anentropic):

 That is more readable, maybe I prefer it.

 When I wrote the patch I was thinking about making it easy to set the flag
 from a template variable. For most use cases you'd be hard-coding the
 silent flag for a particular cycle tag in the template anyway I guess.

 Actually the way it was coded originally you could write your cycle tags
 like:

 {{{
 {% cycle 'row1' 'row2' 'row3' as rowcolors 'silent' %}
 }}}

 ...since the string 'silent' will evaluate to True.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/13567#comment:4>
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.

Reply via email to