Skip to main content
/
Django Ressources
/
Group items matching "tag" in title, tags, annotations or url
Group items matching
in title, tags, annotations or url
Sort By:
Relevance
|
Date
Filter:
All
|
Bookmarks
|
Topics
Simple
Middle
1
More
Django snippets: Smart {% if %} template
tag
- 0 views
www.djangosnippets.org/...1350
template
django
tag
tag
s
templates
snippets
shared by
PhilGo20
on 30 Dec 09
-
Cached
PhilGo20
on 30 Dec 09
Save this as smart_if.py in the template
tag
s 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
See group items tagged
tag
»
Search in Google »