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

[Fwd: Re: [cgiapp] Re: HT filters]


Hi Folks

This is a copy of an email I sent directly to Robert rather than via the
list.

Hi Robert

> In HT only you call it directly:
>
>      my $tpl = HTML::Template->new( filename => 'home.tpl',
>                                     filter => \&doc_filter );
>
> In CA you call that through the load_tmpl but I tried this:
>
>      my $tpl = $self->load_tmpl( 'home.tpl', filter => \&doc_filter );
>
> and that does not work.

I see now.

You'll have to override where CA calls that new.

In my sub cgiapp_init() I have
	$self -> tmpl_path($$global_config{'template_dir'});
so that'd be the place to start looking.

--
Ron Savage
suppressed
http://savage.net.au/index.html

---------------------------------------------------------------------
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.