diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/templates.txt | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/docs/templates.txt b/docs/templates.txt index b263a64aec..0f0009b495 100644 --- a/docs/templates.txt +++ b/docs/templates.txt @@ -109,6 +109,21 @@ Some tags require beginning and ending tags (i.e. below describes all the built-in tags. You can create your own tags, if you know how to write Python code. +Comments +======== + +**New in Django development version** + +To comment-out part of a template, use the comment syntax: ``{# #}``. + +For example, this template would render as ``'hello'``:: + + {# greeting #}hello + +A comment can contain any template code, invalid or not. For example:: + + {# {% if foo %}bar{% else %} #} + Template inheritance ==================== |
