Re: pnotes

[prev] [thread] [next] [Date index for 2004/12/01]

From: Perrin Harkins
Subject: Re: pnotes
Date: 15:07 on 01 Dec 2004
Arshavir Grigorian wrote:
> I have module called Application which handles all the requests to the 
> site (except for images, etc) and then dispatches the request to a 
> different module based on the $r->path_info().

Apache::Dispatch could do this for you if you like.  You could also just 
use httpd.conf to map locations to modules.  Your approach wil work fine 
though.

> I am thinking about creating a Template Toolkit object and a DBI handle 
> in Application::handler() and storing it in the request object's 
> pnotes() before dispatching the request.

Make sure you keep the template object around between requests in a 
global.  If you make a new TT object every time, you will break the 
caching of compiled templates and performance will be poor.

- Perrin

        -- 
        Report problems: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

pnotes
Arshavir Grigorian 19:54 on 24 Nov 2004

Re: pnotes
Stas Bekman 20:29 on 24 Nov 2004

Re: pnotes
Arshavir Grigorian 21:34 on 24 Nov 2004

Re: pnotes
Bart Simpson 06:51 on 01 Dec 2004

Re: pnotes
Perrin Harkins 15:07 on 01 Dec 2004

Re: pnotes
Arshavir Grigorian 21:31 on 08 Dec 2004

Generated at 11:26 on 21 Dec 2004 by mariachi v0.52