Using pv HTML::Template, I can do this:

my $template = HTML::Template->new(filename => 'template.tmpl',
                                     associate => $query);

where $query is my CGI object.

I'm trying to do the same thing with CGI::App:

my $q = $self->query;
   my $template = $self->load_tmpl(filename => 'template.html',   associate => $q);

But I'm getting the message:

HTML::Template->new() called with odd number of option parameters - should be of the 
form option => value

Can this be done?  If so, what is the syntax?

Thanks.

Reply via email to