Tutorials References Exercises Sign Up Menu
Create Website Get Certified Pro

templatetag Template Tag


Output Django code without execute it:

  {% templatetag openblock %}
  {% templatetag closeblock %}
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.


{% templatetag name %}


Value Description
name Required. A string specifying what to ouput.

Name Output
openvariable {{
closevariable }}
openblock {%
closeblock %}
openbrace {
closebrace }
opencomment {#
closecomment #}