{# This comment appears in HTML when DEBUG=True #}
{# !hide This comment is always stripped from output #}

{{ site_name }}

{% comment "user section" %} Block comment with note visible in debug {% endcomment %} {% if user.is_authenticated %}
{# !render Evaluated comment shows: {{ user.username }} #}

Welcome, {{ user.display_name }}!

{% comment "!hide internal note" %} This block is always stripped even with eval marker {% endcomment %}
{% else %}
{# Inline comment for anonymous users #}

Please log in to continue.

{% endif %}
{% comment %}Block comment without note{% endcomment %}

Products

{% comment "!render !hide" %} Hidden despite eval marker - never in output {% endcomment %} {# !render !hide Also hidden despite eval marker #}
{# Escaped variable appears literally: {{ stats.count }} #}

Total items: {{ stats.count }}

Last updated: {{ stats.last_updated }}