Fotango Ltd
and 1 contributors


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.

filename( set filename )

the filename of the template, an alternative to source below.

source( set source )

the TAL source of this template, as a scalar

document( [document] )

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.