Report::Generator::Render::TT2 - class for rendering reports using TT2
my %cfg = ( renderer => 'Report::Generator::Render::TT2', 'Report::Generator::Render::TT2' => { config => { ABSOLUTE => 1, }, output => 'test1.ext', vars => { }, template => 'test1.tt2', options => {}, }, ); Report::Generator->new({cfg => \%cfg})->generate();
Report::Generator::Render::TT2 provides a base class for rendering reports in Report::Generator using Template::Toolkit.
Report::Generator::Render::TT2
See the test*.tt2 examples in the examples directory of this distribution to get a sense who to use this renderer.
test*.tt2
Instantiates a new TT2 renderer for Report::Generator.
Report::Generator
Report::Generator::Render::TT2->new( { config => { ... }, vars => { ... }, options => { ... }, template => 'path/to/template', output => 'path/to/output', } );
The parameters config, <vars> and <options> are optional, template and output are mandatory.
config
template
output
If the config parameter hash contains a flag FIXED_INCLUDE_PATH with a true value, the next paragraph can be skipped.
FIXED_INCLUDE_PATH
When the config parameter hash doesn't contain a value for DELIMITER, it's set to ; (semicolon) for the MSWin32 environment or to : (colon) otherwise. The value for INCLUDE_PATH is appended by the shared directory for this distribution.
DELIMITER
;
:
INCLUDE_PATH
Renders the given template into specified output using the given knobs. Returns a true value on success or sets $self->{error} otherwise.
$self->{error}
Jens Rehsack, <rehsack at cpan.org>
<rehsack at cpan.org>
Please report any bugs or feature requests to bug-report-generator at rt.cpan.org, or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=Report-Generator. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
bug-report-generator at rt.cpan.org
You can find documentation for this module with the perldoc command.
perldoc Report::Generator::Render
You can also look for information at:
RT: CPAN's request tracker
http://rt.cpan.org/NoAuth/Bugs.html?Dist=Report-Generator
AnnoCPAN: Annotated CPAN documentation
http://annocpan.org/dist/Report-Generator
CPAN Ratings
http://cpanratings.perl.org/dist/Report-Generator
Search CPAN
http://search.cpan.org/dist/Report-Generator/
Copyright 2010 Jens Rehsack.
This program is free software; you can redistribute it and/or modify it under the terms of either: the GNU General Public License as published by the Free Software Foundation; or the Artistic License.
See http://dev.perl.org/licenses/ for more information.
To install Report::Generator, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Report::Generator
CPAN shell
perl -MCPAN -e shell install Report::Generator
For more information on module installation, please visit the detailed CPAN module installation guide.