#3826: `{% with %}` template tag
---------------------------+------------------------------------------------
   Reporter:  SmileyChris  |                Owner:  adrian           
     Status:  reopened     |            Component:  Template system  
    Version:  SVN          |           Resolution:                   
   Keywords:               |                Stage:  Ready for checkin
  Has_patch:  1            |           Needs_docs:  0                
Needs_tests:  0            |   Needs_better_patch:  1                
---------------------------+------------------------------------------------
Changes (by [EMAIL PROTECTED]):

  * status:  closed => reopened
  * needs_better_patch:  0 => 1
  * resolution:  fixed =>

Comment:

 To use the ''with'' tag for more than one variable I need to nest the tags
 as follow:
 
 {{{
 {% with var1 as name1 %}
 {% with var2 as name2 %}
 {% with var3 as name 3 %}
 ...
 {% endwith %}
 {% endwith %}
 {% endwith %}
 }}}
 
 This is ugly, cost much typing and can be such confusing, I've done a
 patch to use one ''with'' tag to many variables I want to define, see:
 
 {{{
 {% with var1 as name1 and var2 as name2 and var3 as name3 %}
 ...
 {% endwith %}
 }}}

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