Template::TAL::Template - a TAL template
my $template = Template::TAL::Template->new->source( "<html>...</html>" ); my $dom = $template->process( {} ); print $dom->toString();
This class represents a single TAL template, and stores its XML source. You'll probably not see these objects directly - Template::TAL takes template names and returns bytes. But you might.
Create a new TAL template object.
the filename of the template, an alternative to source below.
the TAL source of this template, as a scalar
returns the XML::LibXML::Document object that represents this template, or sets it if a parameter is given.
Written by Tom Insam, Copyright 2005 Fotango Ltd. All Rights Reserved
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
To install Template::TAL, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::TAL
CPAN shell
perl -MCPAN -e shell install Template::TAL
For more information on module installation, please visit the detailed CPAN module installation guide.