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:

http://www.djangosnippets.org/snippets/130/

Comments

No one has posted any comments on this entry as of yet. Perhaps you’d like to be the first?

Post your comment

Sorry, the time to post comments to this entry has expired.