Fotango Ltd > Template-TAL-0.91 > Template::TAL::Template

Download:
Template-TAL-0.91.tar.gz

Dependencies

Annotate this POD

CPAN RT

New  2
Open  0
View/Report Bugs
Source  

NAME ^

Template::TAL::Template - a TAL template

SYNOPSIS ^

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

DESCRIPTION ^

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 ^

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 ^

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.

syntax highlighting: