Template::TAL::Template - a TAL template


Template-TAL documentation  | view source Contained in the Template-TAL distribution.

Index


NAME

Top

Template::TAL::Template - a TAL template

SYNOPSIS

Top

  my $template = Template::TAL::Template->new->source( "<html>...</html>" );
  my $dom = $template->process( {} );
  print $dom->toString();

DESCRIPTION

Top

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.

METHODS

Top

new()

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.

COPYRIGHT

Top


Template-TAL documentation  | view source Contained in the Template-TAL distribution.