Parent Directory | Revision Log | Patch
revision 16 by dpavlin, Sun Jul 17 11:37:07 2005 UTC | revision 33 by dpavlin, Sun Jul 24 15:35:46 2005 UTC | |
---|---|---|
# | Line 67 sub new { | Line 67 sub new { |
67 | ||
68 | Create output from in-memory data structure using Template Toolkit template. | Create output from in-memory data structure using Template Toolkit template. |
69 | ||
70 | my $text = $tt->apply( template => 'text.tt', data => @ds ); | my $text = $tt->apply( |
71 | template => 'text.tt', | |
72 | data => \@ds | |
73 | ); | |
74 | ||
75 | =cut | =cut |
76 | ||
# | Line 101 to a file. | Line 104 to a file. |
104 | $tt->to_file( | $tt->to_file( |
105 | file => 'out.txt', | file => 'out.txt', |
106 | template => 'text.tt', | template => 'text.tt', |
107 | data => @ds | data => \@ds |
108 | ); | ); |
109 | ||
110 | =cut | =cut |
|
ViewVC Help | |
Powered by ViewVC 1.1.26 |