---
title: '{% templatetag %}'
description: Outputs special characters used to create template tags.
date: '2026-08-02'
categories:
  - Template Tag
  - Coding
canonical: https://www.djangotemplatetagsandfilters.com/tags/templatetag/
doc_link: https://docs.djangoproject.com/en/6.0/ref/templates/builtins/#templatetag
---

# {% templatetag %}

Outputs special characters used to create template tags.

## Documentation

Outputs special characters used to create template tags (e.g., braces and percentage signs).

### Template

```django
{% templatetag openblock %} tag {% templatetag closeblock %}
{% templatetag openvariable %} variable {% templatetag closevariable %}
{% templatetag openbrace %} braces {% templatetag closebrace %}
{% templatetag opencomment %} comment {% templatetag closecomment %}
```

### Result

```django
{% tag %}
{{ variable }}
{ braces }
{# comment #}
```

## Commentary

Unless you’re planning to write an online Django tutorial in which you need to output symbols used in Django templates, you’re unlikely to need this tag.
