Excel::Template::Plus::TT(3pm)

Excel::Template::Plus::TT3pm

Extension of excel::template to use tt

Usage

  use Excel::Template::Plus::TT;
  
  # this is most commonly used through
  # the Excel::Template::Plus factory 
  
  my $template = Excel::Template::Plus::TT->new(
      template => 'greeting.tmpl',
      config   => { INCLUDE  => [ '/templates' ] },
      params   => { greeting => 'Hello' }
  );
  
  $template->param(location => 'World');
  
  $template->write_file('greeting.xls');

Overview

This is an engine for Excel::Template::Plus which replaces the standard Excel::Template template features with TT. See the Excel::Template::Plus docs for more information.

Methods

Accessors

config
template
template_class
params

Excel::Template compat methods

params ($name | $name = $value)>

This provides access to getting and setting the parameters, it behaves exactly like the standard CGI.pm-style param method.

output

Returns the generated excel file.

write_file ($filename)

Writes the generated excel file to $filename.

Housekeeping

DEMOLISH

This will cleanup any temp files generated in the process.

meta

Returns the metaclass.

Acknowledgements

This module was inspired by Excel::Template::TT.

Releases

7 releases since Debian 7 (Wheezy); the text changed 3 times.

  1. 7–8
  2. 9–10
  3. 11
  4. 12–13

Bugs

All complex software has bugs lurking in it, and this module is no exception. If you find a bug please either email me, or add the bug to cpan-RT.

Author

Stevan Little <[email protected]>

From libexcel-template-plus-perl 0.06-2 in Debian 13 (Trixie). Parsed by carta from the page's man source.