in reply to Re^2: Appending to Template Toolkit
in thread Appending to Template Toolkit

Then read the section again. Maybe searching for the word "append" helps. I'm not sure how I could tell things clearer than the documentation already does, which is why I'm pointing you to it instead of regurgitating it here.

Replies are listed 'Best First'.
Re^4: Appending to Template Toolkit
by Anonymous Monk on Mar 07, 2011 at 20:45 UTC
    No problem in helping you!Here it is, try this way:
    #!/usr/bin/perl -w use strict; use Template; ... my $template = Template->new( ); my $temp_data = {}; # set variales for template ... # here is how I did for HTML::Template #$template->param(my_date => $date); #$onscreen .= $template->output; # process template with tt $temp_data->{'my_date'} = $date; $template->process('screen.html', $temp_data, \$onscreen) || di +e $template->error( ); ... $onscreen .="</table>";
    Let me know if works!