JeffCroft.com

Link // 11.15.2008 // 8:35 AM // 0 Comments

Django snippets: PyIf Template Tag

Nice replacement if tag for Django templates which supports a lot more types of conditionals. It sounds like the author aims for this to go into Django proper and replace the built-in if tag. My personal opinion is that would not be a good idea; there are very sound reasons why Django’s if tag is as simplistic as it is. But, if you need something more robust and powerful, give this a shot. It looks nice.

Visit site...

Comments

No one commented on this entry.

Tags for this link