Robert Hicks wrote:
Currently with HT I do this:
my $template = $self->load_tmpl('reports.tmpl.html');
$template->param(
title => 'Trakker :: Reports Page',
data => $data,
);
$template->param($errs) if $errs;
That implies that $errs is a reference to a hash.
I tried converting
news <[EMAIL PROTECTED]> wrote on 10/11/2006 10:12:02 AM:
> I tried converting that to this:
>
> my %params = (
> title => 'Trakker :: Reports',
> data => $data,
> );
>
> # I imagine this is totally wrong?!
> %params = (
> errs => $errs,
> ) if $errs;
>
> return $self->tt_process(
On Behalf Of Robert Hicks
> Sent: Thursday, 12 October 2006 3:00 a.m.
> To: cgiapp@lists.erlbaum.net
> Subject: [cgiapp] Re: HTML::Template -> TT
>
> Dan Horne wrote:
> > All you'd need to do is replace the HT parameters in your templates with
> TT
> > syntax. You should also look at C::A::Plugin: