Django

Code

Changeset 5359

Show
Ignore:
Timestamp:
05/27/07 05:44:42 (1 year ago)
Author:
mtredinnick
Message:

Added a clarification that {#...#} is only for single-line comments.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • django/trunk/docs/templates.txt

    r5353 r5359  
    113113======== 
    114114 
    115 To comment-out part of a template, use the comment syntax: ``{# #}``. 
     115To comment-out part of a line in a template, use the comment syntax: ``{# #}``. 
    116116 
    117117For example, this template would render as ``'hello'``:: 
     
    122122 
    123123    {# {% if foo %}bar{% else %} #} 
     124 
     125This syntax can only be used for single-line comments (no newlines are 
     126permitted between the ``{#`` and ``#}`` delimiters). If you need to comment 
     127out a multiline portion of the template, see the ``comment`` tag, below__. 
     128 
     129__ comment_ 
    124130 
    125131Template inheritance