Elements tagged with: programmierung

Page created at
Case/When/Otherwise for Django Oct. 30, 2005, 1:04 p.m.
If you have any evil plans for a switch statement for Django (hia rjwittams! ;-)), you might want to look into my TagLib. There is a case/when/otherwise statement in there. It's quite easy to use: {% case variable %} {% when "value1" %} {% endwhen %} {% when "value2" %} {% endwhen %} {% otherwise %} ...
Django, Programmierung, Python