Used to comment out code to prevent template tags or variables from being interpreted and/or to prevent the content from being delivered to the browser.
An optional note can be included in the open comment tag.
Template
{% comment "Should we include this?" %} <small class="text-muted"> Created on: {{ joke.created }} Last updated: {{ joke.updated }} </small> {% endcomment %}
Note that single lines of text can be commented out using {#
and #}
:
{# This is a comment. #}