There is an ongoing outage on the primary CPAN mirror. It is possible to work around the issue by using MetaCPAN as a mirror.

NAME

Dotiac::DTL::Tag::filter - The {% filter FILTER1[|FILTER2[|FILTER3[|...]]] %} tag

SYNOPSIS

Template file:

{% filter lower %}
	HELLO WORLD {% include "other.html" %}
{% endfilter %} {# = hello world ..#}
{% filter striptags|cut:"x" %}
	<img src="dirty.png">xxxTheManxxx
{% endfilter %} {# = TheMan #}

DESCRIPTION

Applies a filter to the output of everything between {% filter %} and {% endfilter %}.

See Dotiac::DTL::Filter for a list of available filters.

BUGS AND DIFFERENCES TO DJANGO

The tag has to gather all the data first, so it will use remove the memory benefits coming from using print(), but only for the content inside the filter.

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