[Templates] Template with mod_perl2

michael higgins michael.higgins@evolone.org
Mon, 15 Jan 2007 16:52:29 -0800


On Fri, 12 Jan 2007 17:43:26 -0500
Perrin Harkins <perrin@elem.com> wrote:

Perrin --

> On Fri, 2007-01-12 at 17:06 -0500, Jonathan Mangin wrote:
> > What do I need to use TT with mod_perl2?
> 
> You don't need anything.  Go ahead and use it.
> 
> > I see Apache::Template but a CPAN install eventually
> > tries to install modperl 1.29.  That can't be right.
> 
> If you want something to automatically feed requested documents through
> TT like Apache::Template does, you can pick up the mod_perl2 patches for
> it from the list archives.  Most people want to write some actual code
> though, to talk to databases and the like.  It's very simple to call TT
> from a mod_perl handler or script, or you can use a framework like
> CGI::Application or Catalyst.
> 

I was hoping you could expand a bit on your answers.... if I understand you correctly, and I don't "need" anything to run TT via Apache... what is the reason for Apache::Template then?

And if I want to write some code to talk to DBs & such, why would I avoid Apache::Template?

I ask because the difficulty of getting TT to work with MP2 and Apache2 seems huge. Are you, in effect, saying that's a waste of time? If Apache2 with Modperl2 doesn't need Apache::Template, then why? Did Apache and Modperl ever need it? What's the difference?

Thanks for any further info. I have a project I want to code in Maypole, that I'd intended to use in Apache and modperl. Version 2. Without a headache. Is this even a good idea at all, then? If not, do you have any perlish/TT recommendation?

Cheers,


-- 
 |\  /|        |   |          ~ ~  
 | \/ |        |---|          `|` ?
 |    |ichael  |   |iggins    \^ /
 michael.higgins[at]evolone[dot]org