Ticket #5187: minor-doc-fixes.diff
File minor-doc-fixes.diff, 2.6 KB (added by , 17 years ago) |
---|
-
django/template/defaulttags.py
678 678 679 679 {% if athlete_list and coach_list or cheerleader_list %} 680 680 681 If you need to combine and and or to do advanced logic, just use682 nested if tags. For example:681 If you need to combine ``and`` and ``or`` to do advanced logic, just 682 use 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() 691 691 del bits[0] -
django/template/loader_tags.py
140 140 This tag may be used in two ways: ``{% extends "base" %}`` (with quotes) 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 """ 146 146 bits = token.contents.split() -
docs/contributing.txt
286 286 * Mark all strings for internationalization; see the `i18n documentation`_ 287 287 for details. 288 288 289 * In docstrings, use "action words ," like so::289 * In docstrings, use "action words" like so:: 290 290 291 291 def foo(): 292 292 """ -
docs/templates_python.txt
277 277 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 283 283 c = RequestContext(request, {