#7711: Switch/case tag
-------------------------------------+-------------------------------------
               Reporter:             |        Owner:  nobody
  GabrielFalcao                      |    Milestone:
                 Status:  new        |      Version:  SVN
              Component:  Template   |     Keywords:  case switch tags
  system                             |  template templatetag
             Resolution:             |    Has patch:  1
           Triage Stage:  Design     |  Needs tests:  1
  decision needed                    |
    Needs documentation:  1          |
Patch needs improvement:  1          |
-------------------------------------+-------------------------------------
Changes (by simon29):

 * cc: simon@… (added)


Comment:

 Having a case/switch tag is a good call. Rendering different blocks for
 multiple conditions is common enough, and using multiple if's is a hack.
 We aren't in Python land here anymore toto, this is dirty old html.

 This one looks pretty tidy http://djangosnippets.org/snippets/967/ only it
 needs to be updated to use the new "if" syntax conditions.

-- 
Ticket URL: <http://code.djangoproject.com/ticket/7711#comment:7>
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 django-updates@googlegroups.com.
To unsubscribe from this group, send email to 
django-updates+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-updates?hl=en.

Reply via email to