site layout

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

From: Arshavir Grigorian
Subject: site layout
Date: 20:02 on 15 Dec 2004
Hi,

I have a module called Application that pretty much acts as a dispatcher 
and handles the root URI of my application.
The problem is the images that I would like to put under the same URI 
path, but can't do because I don't know how to return the request back 
to Apache from Application when the request is for an image.

In other words, I would like to have:

<Location />
    SetHandler perl-script
    PerlResponseHandler MCAM::Application
</Location>

and the URI for images be /images/. When Application detects that the 
request is for anything under /images/, it returns the control to Apache 
to serve the image, otherwise it displatches the request to the right 
module.

Currently I have the following:

<Location /app>
    SetHandler perl-script
    PerlResponseHandler MCAM::Application
</Location>

so that the requests for /images/ bypass the Application handler.

On a related note, is it worth using TemplateToolkit's PRE_DEFINE 
functionality to store an image path, then use it in all the templates 
for flexibility?

TIA for any input/insights.



Arshavir




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

site layout
Arshavir Grigorian 20:02 on 15 Dec 2004

Re: site layout
Michael Peters 20:34 on 15 Dec 2004

Re: site layout
Arshavir Grigorian 22:21 on 15 Dec 2004

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