[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cgiapp] Setting HTML::Template options


On Tue, 17 Aug 2004, Thilo Planz wrote:

> You could even give it the same name "load_tmpl" to avoid having to
> change
> existing code but I find this confusing.
>

here is an example for overriding the load_tmpl method and ensuring in
this case to have associate and a version paramter in every call.

sub load_tmpl {
  my $self = shift;
  my $q = $self->query;
  my $t = $self->SUPER::load_tmpl(@_, associate => $q);
  $t->param(version       => $VERSION);
  return $t;
}



Gabor


---------------------------------------------------------------------
Web Archive:  http://www.mail-archive.com/suppressed/
              http://marc.theaimsgroup.com/?l=cgiapp&r=1&w=2
To unsubscribe, e-mail: suppressed
For additional commands, e-mail: suppressed


Mail converted by mhonarc 2.6.15
This archive provided courtesy of JSW4.NET, Internet Hosting Services for Small Business.