Changeset 5359
- Timestamp:
- 05/27/07 05:44:42 (1 year ago)
- Files:
-
- django/trunk/docs/templates.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
django/trunk/docs/templates.txt
r5353 r5359 113 113 ======== 114 114 115 To comment-out part of a template, use the comment syntax: ``{# #}``.115 To comment-out part of a line in a template, use the comment syntax: ``{# #}``. 116 116 117 117 For example, this template would render as ``'hello'``:: … … 122 122 123 123 {# {% if foo %}bar{% else %} #} 124 125 This syntax can only be used for single-line comments (no newlines are 126 permitted between the ``{#`` and ``#}`` delimiters). If you need to comment 127 out a multiline portion of the template, see the ``comment`` tag, below__. 128 129 __ comment_ 124 130 125 131 Template inheritance
