in reply to Re^2: Perl CGI and Template Toolkit
in thread Perl CGI and Template Toolkit
I'm pretty sure you're doing something else wrong. As you can see below, MIME::Lite::TT::HTML is just passing through the respective hashref to TT2. And TT2 can certainly handle HoHs (I've done it many times).
$ pwd /home/eliya/tmp/MIME-Lite-TT-HTML-0.04 $ grep -r TmplParams . ./lib/MIME/Lite/TT/HTML.pm: TmplParams => \%params, ./lib/MIME/Lite/TT/HTML.pm:=head2 TmplParams ./lib/MIME/Lite/TT/HTML.pm: my $tmpl_params = delete $options->{ Tm +plParams }; $ grep -r '$tmpl_params' . ./lib/MIME/Lite/TT/HTML.pm: my $tmpl_params = delete $options->{ Tm +plParams }; ./lib/MIME/Lite/TT/HTML.pm: $tt->process( $template->{html}, $tmpl_ +params, \$html ) or croak $tt->error; ./lib/MIME/Lite/TT/HTML.pm: $tt->process( $template->{text}, $t +mpl_params, \$text ) or croak $tt->error;
Could you show the code (with the HoH) you've tried?
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Perl CGI and Template Toolkit
by Perobl (Beadle) on Jan 03, 2012 at 21:49 UTC | |
by Eliya (Vicar) on Jan 03, 2012 at 22:47 UTC | |
by Perobl (Beadle) on Jan 04, 2012 at 15:47 UTC | |
by Eliya (Vicar) on Jan 04, 2012 at 16:34 UTC | |
by Perobl (Beadle) on Jan 04, 2012 at 18:58 UTC | |
|
In Section
Seekers of Perl Wisdom