1Excel::Template::Plus::UTsTe(r3)Contributed Perl DocumenEtxacteilo:n:Template::Plus::TT(3)
2
3
4
6 Excel::Template::Plus::TT - Extension of Excel::Template to use TT
7
9 use Excel::Template::Plus::TT;
10
11 # this is most commonly used through
12 # the Excel::Template::Plus factory
13
14 my $template = Excel::Template::Plus::TT->new(
15 template => 'greeting.tmpl',
16 config => { INCLUDE => [ '/templates' ] },
17 params => { greeting => 'Hello' }
18 );
19
20 $template->param(location => 'World');
21
22 $template->write_file('greeting.xls');
23
25 This is an engine for Excel::Template::Plus which replaces the standard
26 Excel::Template template features with TT. See the
27 Excel::Template::Plus docs for more information.
28
30 Accessors
31 config
32 template
33 template_class
34 params
35
36 Excel::Template compat methods
37 params ($name | $name = $value)>
38 This provides access to getting and setting the parameters, it
39 behaves exactly like the standard CGI.pm-style param method.
40
41 output
42 Returns the generated excel file.
43
44 write_file ($filename)
45 Writes the generated excel file to $filename.
46
47 Housekeeping
48 DEMOLISH
49 This will cleanup any temp files generated in the process.
50
51 meta
52 Returns the metaclass.
53
55 All complex software has bugs lurking in it, and this module is no
56 exception. If you find a bug please either email me, or add the bug to
57 cpan-RT.
58
60 This module was inspired by Excel::Template::TT.
61
63 Stevan Little <stevan@cpan.org>
64
66 Copyright 2007-2014 by Infinity Interactive, Inc.
67
68 <http://www.iinteractive.com>
69
70 This library is free software; you can redistribute it and/or modify it
71 under the same terms as Perl itself.
72
73
74
75perl v5.30.1 2020-01-30 Excel::Template::Plus::TT(3)