Opened 12 months ago

Closed 12 months ago

Last modified 12 months 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: master
Severity: Normal Keywords: all-versions
Cc: Triage Stage: Unreviewed
Has patch: yes Needs documentation:
Needs tests: Patch needs improvement:
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 Changed 12 months ago by Tim Graham <timograham@…>

  • Resolution set to fixed
  • Status changed from new to closed

In e0208944708aa9e1034531a047a731b1c93b50c6:

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

comment:2 Changed 12 months ago by Tim Graham <timograham@…>

In cb3266c1b0d6328dcf316f2d6d0db28a10df6816:

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

Backport of e020894470 from master

comment:3 Changed 12 months ago by Tim Graham <timograham@…>

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