Dotiac::DTL::Addon::unparsed: Tags to work with unparsed template data
Load from a Dotiac::DTL-template:
{% load unparsed %}
Load in Perl file for all templates:
use Dotiac::DTL::Addon::unparsed;
Then it can be used:
{% unparsed %}Some text{% endunparsed %}
This addons includes a tag to work with unparsed template data, this is useful if you want to document Django Template code in a Django Template (using Dotiac::DTL)
It can also be used for 2-pass (or more) templating. The first pass includes static data and the second pass will render the dynamic template:
{% include "header.html" %} {% unparsed %}{% for x in list %}...{% endfor %} {% endunparsed %}
This will generate after the first pass:
Headertext {% for x in list %}...{% endfor %}
This is also valid template and can be used by another script.
There is only one (for now)
Dotiac::DTL::Tag::unparsed
Please report any bugs or feature requests to https://sourceforge.net/tracker2/?group_id=249411&atid=1126445
Dotiac::DTL, Dotiac::DTL::Addon, http://www.dotiac.com, http://www.djangoproject.com
Marc-Sebastian Lucksch
perl@marc-s.de
To install Dotiac::DTL::Tag::unparsed, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Dotiac::DTL::Tag::unparsed
CPAN shell
perl -MCPAN -e shell install Dotiac::DTL::Tag::unparsed
For more information on module installation, please visit the detailed CPAN module installation guide.