> > Write your own Apache::Template.
> 
> I want to understand how/why Andy did it the way he did, and I want
> to know how to subclass it.

It would take more code to subclass than to just rewrite it.  You
could use one like this:

package My::Handler;
my $th = Template->new( INCLUDE_PATH => $r->document_root );
sub handler
{
    my $r = shift;
    my $me = $r->uri;
    $me =~ s[^/][];
    $th->process($me, {}, $r ) or die $th->error;
}
1;




There is so many ways to do things.  It quickly becomes complex if you
try to create something general...  I'm lookin ag Apache::Template now
and thinks that that module makes things look more difficult than they
are.



-- 
/ Jonas  -  http://jonas.liljegren.org/myself/en/index.html


Reply via email to