Dotiac::DTL::Tag::filter - The {% filter FILTER1[|FILTER2[|FILTER3[|...]]] %} tag
Template file:
{% filter lower %} HELLO WORLD {% include "other.html" %} {% endfilter %} {# = hello world ..#} {% filter striptags|cut:"x" %} <img src="dirty.png">xxxTheManxxx {% endfilter %} {# = TheMan #}
Applies a filter to the output of everything between {% filter %} and {% endfilter %}.
See Dotiac::DTL::Filter for a list of available filters.
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.
http://www.djangoproject.com, Dotiac::DTL
Dotiac::DTL was built according to http://docs.djangoproject.com/en/dev/ref/templates/builtins/.
Marc-Sebastian Lucksch
perl@marc-s.de
To install Dotiac::DTL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dotiac::DTL
CPAN shell
perl -MCPAN -e shell install Dotiac::DTL
For more information on module installation, please visit the detailed CPAN module installation guide.