The London Perl and Raku Workshop takes place on 26th Oct 2024. If your company depends on Perl, please consider sponsoring and/or attending.

NAME

Dotiac::DTL::Tag::templatetag - The {% templatetag openblock|closeblock|openvariable|closevariable|openbrace|closebrace|opencomment|closecomment %} tag

SYNOPSIS

Template file:

{% templatetag openblock %} templatetag {% templatetag closeblock %}
{% templatetag openvariable %} var1 {% templatetag closevariable %}
{% templatetag openbrace %} somebrace {% templatetag closebrace %}
{% templatetag opencomment %} no comment {% templatetag closecomment %}

This will result in:

{% templatetag %}
{{ var1 }}
{ somebrace }
{# no comment #}

DESCRIPTION

Inserts the special tags used by Django Templates into the rendered output.

The tags

These are the tags which can be used.

openblock

The tag that opens a tag.

{%
closeblock

The tag that closes a tag.

%}
openvariable

The tag that opens a variable.

{{
closevariable

The tag that closes a variable.

}}
openbrace

This is not needed in this implementation, since you can include braces in the template, if they are not followed by another {, % or #.

{
closebrace

Also not needed in this implementation.

}
opencomment

The tag that starts a comment.

{%
closecomment

The tag that ends a comment.

%}

BUGS AND DIFFERENCES TO DJANGO

If you find any, please let me know.

SEE ALSO

http://www.djangoproject.com, Dotiac::DTL

LEGAL

Dotiac::DTL was built according to http://docs.djangoproject.com/en/dev/ref/templates/builtins/.

AUTHOR

Marc-Sebastian Lucksch

perl@marc-s.de