#5865: cycle template tag should accept a single argument
-----------------------+----------------------------------------------------
   Reporter:  gwilson  |                Owner:  munhitsu       
     Status:  new      |            Component:  Template system
    Version:  SVN      |           Resolution:                 
   Keywords:           |                Stage:  Accepted       
  Has_patch:  0        |           Needs_docs:  0              
Needs_tests:  0        |   Needs_better_patch:  0              
-----------------------+----------------------------------------------------
Comment (by gwilson):

 Replying to [comment:3 mtredinnick]:
 > I'm a little concerned that this is ambiguous when you're reading it:
 you can't easily tell if it's referring to a previously named "cycle" tag
 or creating a new one using a variable as an iterator.

 Is it really that different from using the "as varname" syntax of other
 tags or the `{% with %}` tag though?  The way I see it, when you encounter
 any variable name in the templates, you have to check where it came from.
 Was it passed in the context?  Was it defined as the target of "as
 varname" syntax of another variable?  Was it defined with a with tag?  Is
 it a loop variable? etc.  This would be no different.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/5865#comment:5>
Django Code <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