Skip to main content
/
Django Ressources
/
Group items tagged tag
Group items tagged
Filter:
All
|
Bookmarks
|
Topics
Simple
Middle
1
More
Django snippets: Smart {% if %} template tag
- 0 views
www.djangosnippets.org/...1350
template
django
tag
tags
templates
snippets
shared by
PhilGo20
on 30 Dec 09
-
Cached
PhilGo20
on 30 Dec 09
Save 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.
Save 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.
...
Cancel
...
Cancel
1
-
1
of
1
Showing
20
▼
items per page
20
50
100
Related searches
Search
tag
matching in title, tags, annotations and url of group items »
Search in Google »