Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
Thanks for the Help!#!/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; $onscreen .= $template->process('screen.html', $temp_data) || di +e $template->error( ); ... $onscreen .="</table>";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Appending to Template Toolkit
by Corion (Patriarch) on Mar 07, 2011 at 19:48 UTC | |
by Anonymous Monk on Mar 07, 2011 at 19:59 UTC | |
by Corion (Patriarch) on Mar 07, 2011 at 20:24 UTC | |
by Anonymous Monk on Mar 07, 2011 at 20:45 UTC | |
by MidLifeXis (Monsignor) on Mar 07, 2011 at 20:04 UTC |