Opened 11 years ago

Closed 11 years ago

Last modified 11 years ago

#22753 closed Cleanup/optimization (fixed)

(With patch) Documented latent feature of template tag {% comment %} . Add meta notes.

Reported by: brycenesbitt Owned by: nobody
Component: Documentation Version: dev
Severity: Normal Keywords: all-versions
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: yes UI/UX: no

Description

The {% comment %} tag has a nice feature, and has since the start, but it's little known.
This patch documents the ability to add a meta note to a comment:

{% comment 'disabled for performance reasons, see bug #121' %}
    code...
{% endcomment %}

See https://github.com/django/django/pull/2753

Change History (3)

comment:1 by Tim Graham <timograham@…>, 11 years ago

Resolution: fixed
Status: newclosed

In e0208944708aa9e1034531a047a731b1c93b50c6:

Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.

comment:2 by Tim Graham <timograham@…>, 11 years ago

In cb3266c1b0d6328dcf316f2d6d0db28a10df6816:

[1.7.x] Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.

Backport of e020894470 from master

comment:3 by Tim Graham <timograham@…>, 11 years ago

In 9334150ca4d60026be4e36e3599bb1e23ccbae7b:

[1.6.x] Fixed #22753 -- Documented ability to use a note with the {% comment %} tag.

Backport of e020894470 from master

Note: See TracTickets for help on using tickets.
Back to Top