logo
Free, unlimited AI code reviews that run on commit
git-lrc git-lrc GitHub Install Now We'd appreciate a star git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt git-lrc - Free, unlimited AI code reviews that run on commit | Product Hunt

Excel::Template::Plus::TT - Extension of Excel::Template to use TT

Acknowledgements

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

Author

       Stevan Little <stevan@cpan.org>

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.

Description

       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

Accessorsconfigtemplatetemplate_classparamsExcel::Templatecompatmethodsparams($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.

   HousekeepingDEMOLISH
           This will cleanup any temp files generated in the process.

       meta
           Returns the metaclass.

Name

       Excel::Template::Plus::TT - Extension of Excel::Template to use TT

Synopsis

         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');

See Also