Change: Omitting Template Tag

created on Oct. 19, 2012, 1:04 p.m. by Hevok & updated on Oct. 19, 2012, 1:04 p.m. by Hevok

For omitting the rendering of template tag {{ }} there are two options:

  1. {% templatetage %} for variables:

    {% templatetag openvariable %} variable {% templatetag closevariable %} will render as {{ variable }}

  2. {% verbatim %} for large block of text (only in Django-1.5(dev)):

    {% verbatim %} This {{ content }} won't be processed. {% endverbatim %}


Tags: template
Categories: Tutorial
Parent: Web Framework

Comment: Created entry.

See entry | Admin

Comment on This Data Unit