Django snippets: Smart {% if %} template tag - 0 views
-
PhilGo20 on 30 Dec 09Save this as smart_if.py in the templatetags folder of one of your apps. Then a simple {% load smart_if %} replaces the boring built-in Django {% if %} template with the new smart one.