Template::Plugin::HTML::Template - HTML::Template filter in TT
my $tt = Template->new; $tt->process('html-template.tt', { myname => 'foo' }); # html-template.tt [% USE HTML.Template %] [% FILTER html_template %] My name is <TMPL_VAR name=myname> [% END %] # HTML::Template parameters [% USE ht = HTML.Template(loop_context_vars = 1) %] [% FILTER $ht %] <TMPL_LOOP employee> <TMPL_IF __FIRST__>...</TMPL_IF> </TMPL_LOOP> [% END %]
Template::Plugin::HTML::Template is a TT plugin to filter HTML::Template templates. It might sound just silly, but it can be handy when you want to reuse existent HTML::Template templates inside TT.
Tatsuhiko Miyagawa <miyagawa@bulknews.net>
darren chamberlain <darren@cpan.org>
This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
Template, HTML::Template
To install Template::Plugin::HTML::Template, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Plugin::HTML::Template
CPAN shell
perl -MCPAN -e shell install Template::Plugin::HTML::Template
For more information on module installation, please visit the detailed CPAN module installation guide.