Changeset 5927
- Timestamp:
- 08/18/07 00:43:38 (1 year ago)
- Files:
-
- django/trunk/django/template/defaulttags.py (modified) (1 diff)
- django/trunk/django/template/loader_tags.py (modified) (1 diff)
- django/trunk/docs/contributing.txt (modified) (1 diff)
- django/trunk/docs/templates_python.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/django/template/defaulttags.py
r5815 r5927 677 677 this is invalid:: 678 678 679 {% if athlete_list and coach_list or cheerleader_list %}680 681 If you need to combine and and orto do advanced logic, just use679 {% if athlete_list and coach_list or cheerleader_list %} 680 681 If you need to combine ``and`` and ``or`` to do advanced logic, just use 682 682 nested if tags. For example: 683 683 684 {% if athlete_list %} 685 {% if coach_list or cheerleader_list %} 686 We have athletes, and either coaches or cheerleaders! 684 {% if athlete_list %} 685 {% if coach_list or cheerleader_list %} 686 We have athletes, and either coaches or cheerleaders! 687 {% endif %} 687 688 {% endif %} 688 {% endif %}689 689 """ 690 690 bits = token.contents.split() django/trunk/django/template/loader_tags.py
r5511 r5927 141 141 uses the literal value "base" as the name of the parent template to extend, 142 142 or ``{% extends variable %}`` uses the value of ``variable`` as either the 143 name of the parent template to extend (if it evaluates to a string ,) or as143 name of the parent template to extend (if it evaluates to a string) or as 144 144 the parent tempate itelf (if it evaluates to a Template object). 145 145 """ django/trunk/docs/contributing.txt
r5872 r5927 287 287 for details. 288 288 289 * In docstrings, use "action words ," like so::289 * In docstrings, use "action words" such as:: 290 290 291 291 def foo(): django/trunk/docs/templates_python.txt
r5667 r5927 278 278 Django comes with a special ``Context`` class, 279 279 ``django.template.RequestContext``, that acts slightly differently than 280 the normal ``django.template.Context``. The first difference is that takes280 the normal ``django.template.Context``. The first difference is that it takes 281 281 an `HttpRequest object`_ as its first argument. For example:: 282 282
