diff options
| author | Bryce Nesbitt <bryce2@obviously.com> | 2014-06-02 13:19:12 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2014-06-02 18:52:55 -0400 |
| commit | cb3266c1b0d6328dcf316f2d6d0db28a10df6816 (patch) | |
| tree | 1579a231fbb1dd50f54d5c43f8999a57dbe8ece8 /docs | |
| parent | 170255caf43f2d0ae072f0b7a22da90f50bd95b0 (diff) | |
[1.7.x] Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.
Backport of e020894470 from master
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/ref/templates/builtins.txt | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/docs/ref/templates/builtins.txt b/docs/ref/templates/builtins.txt index ca44da3bda..d904d06df4 100644 --- a/docs/ref/templates/builtins.txt +++ b/docs/ref/templates/builtins.txt @@ -52,11 +52,13 @@ comment ^^^^^^^ Ignores everything between ``{% comment %}`` and ``{% endcomment %}``. +An optional note may be inserted in the first tag. For example, this is +useful when commenting out code for documenting why the code was disabled. Sample usage:: <p>Rendered text with {{ pub_date|date:"c" }}</p> - {% comment %} + {% comment "Optional note" %} <p>Commented out text with {{ create_date|date:"c" }}</p> {% endcomment %} |
