vindaloo has asked for the wisdom of the Perl Monks concerning the following question:

I am writing an Apache handler under mod_perl 2, Apache2 and I happen to be using Template Toolkit for the templating system. I see that the Apache::Template handler from CPAN has basically done this all already but it does not seem to be clear on its use in Apache2 or plans for a full port to Apache2.

So my question is, should I keep writing my own hanlder or ar there any CPAN modules out there that any monks are using in an environment similar to what I have described?

  • Comment on Apache handler for Apache2 and Template::Toolkit

Replies are listed 'Best First'.
Re: Apache handler for Apache2 and Template::Toolkit
by perrin (Chancellor) on Apr 15, 2005 at 22:10 UTC
    There is a version of Apache::Template that works with mod_perl 2. If you check the TT mailing list archives, you'll find it. However, there's no reason you have to use Apache::Template. Writing a handler for calling TT is easy and definitely the simpler way to go if you need custom functionality, like setting up a bunch of data before running the template.