Template::Direct - Creates a document page based on template/datasets
use Template::Direct; my $template = Template::Direct->new( Location => $fileName/$refName ); my $result = $page->compile( Data => {DataSets}, Language => 'en' );
Creates, Saves and Manages templates, their languages, the publication of and also does some work with the template design when saving unpublished templates
Create a new template, takes the arguments: * Directory - Location of all files, base path. * Location - Location of the template (Filename)
Load a Template Page object with specific language fallbacks. Returns Template::Direct::Page object.
Short cut for loading the page with Languages and then Compiling that page with data. Returns final page string.
Load a specific version of a template file, returns the template as a string.
Returns a suitable language to use for this template, given what exists.
Copyright, Martin Owens 2008, AGPL
To install Template::Direct, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Template::Direct
CPAN shell
perl -MCPAN -e shell install Template::Direct
For more information on module installation, please visit the detailed CPAN module installation guide.