I seem to lack some fundamental understanding of the INCLUDE semantics
in Template-Toolkit. :-) I've tried to help myself with this one, but
was unable to unearth any helpful information.
I have a number of virtual sites on the same server that need to use
Template-Toolkit, using similar filenames. I set it up originally
using INCLUDE_PATH in my Apache startup perl script, which worked
until I had two sites that used all of the same filenames. I've also
enabled RELATIVE, which actually sounds closer to what I want, but
that doesn't seem to do what I need in practice.
I would like to specify a number of "allowed" directories for a single
template object (as in the INCLUDE_PATHs), but at runtime, be able to
specify from which directory to get the files.
So, I want to be able to write something like:
(assume INCLUDE_PATH => '/www/1/html:/www/2/html')
Within my (mod_perl) script, CWD is /www/2/cgi-bin
$MyHandler::template->process('../html/results.html',\%vars);
In this case, TT seems to take "results.html" from /www/1/html,
instead of /www/2/html.
I must be missing something fairly significant and probably moderately
embarassing. Anyone care to tell me what that is? ;-)
Thanks,
- Ryan
--
Ryan Thompson <[EMAIL PROTECTED]>
SaskNow Technologies - http://www.sasknow.com
901 1st Avenue North - Saskatoon, SK - S7K 1Y4
Tel: 306-664-3600 Fax: 306-244-7037 Saskatoon
Toll-Free: 877-727-5669 (877-SASKNOW) North America
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://www.template-toolkit.org/mailman/listinfo/templates