Well it might help a bit to say why I need this. We are building a hosted application which our clients will use, and every client gets a 'catalog' which is a url space defined in apache like so:
<Location /catalog1> PerlSetEnv CATALOG catalog1 SetHandler perl-script PerlHandler MyApp </Location> Now we also have a templates catalog. The templates catalog has things like order page templates, etc.. If someone tries to go to /catalog1/order.html, and order.html doesn't exist, it will use /templates/order.html instead. If a client wants to customize a template, they just copy over the files they want to customize, or the entire template if that is what they want. Now with this system it's a whole lot easier if they dont' have to change any paths in the template files (for PROCESS or INCLUDE statements for example). In the meantime, I just populate a template variable with the path of the current directory so my PROCESS/INCLUDE statements look like this: [% PROCESS "$params.dir/header.html" %] Easy enough, but it's more intuitive without the params.dir bit. Now what I want is to have the system look for files included via PROCESS/INCLUDE directives in the templates directory if they dont' exist in the catalog. I think I will have to hack on TT a bit to accomplish that though. Chris ----- Original Message ----- From: "Marcin Kasperski" <[EMAIL PROTECTED]> To: <[EMAIL PROTECTED]> Sent: Tuesday, February 17, 2004 4:12 PM Subject: Re: [Templates] PROCESS/INCLUDE on relative files > "Chris Ochs" <[EMAIL PROTECTED]> writes: > > > Never mind, I realized that relative means relative to INCLUDE_PATH.. > > > > I happened to patch Provider a bit to search templates thorough some > paths too, but I am not sure whether this idea is to be recommended... > > _______________________________________________ > templates mailing list > [EMAIL PROTECTED] > http://lists.template-toolkit.org/mailman/listinfo/templates > _______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
