templatetag Template Tag
Example
Output Django code without execute it:
<h1>
{% templatetag openblock %}
extends
{% templatetag closeblock %}
</h1>
Run Example »
Definition and Usage
The templatetag
tag is used to display
characters that are normally used to perform Django tasks.
Each tag character, like {{
,
{%
and {#
, has
their own name, see below.
Syntax
{% templatetag name %}
Parameters
Value | Description | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
name | Required. A string specifying what to ouput.
|