[Templates] Restricting access when RELATIVE is on
Randal L. Schwartz
merlyn@stonehenge.com
15 Jan 2007 08:47:01 -0800
>>>>> "Mihai" == Mihai Bazon <mishoo@dynarch.com> writes:
Mihai> And in index.tt I want to be able to say:
Mihai> [% PROCESS baz/other.tt %]
Mihai> that is, provide a path relative to the directory of the current template.
You can probably subclass Template::Provider to do what you want. See
the "fetch" method for how it computes relative and absolute names.
That's the great thing about open source... you don't like how it works, you
can see the source, and modify it. Try *that*, Java dudes. :)
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<merlyn@stonehenge.com> <URL:http://www.stonehenge.com/merlyn/>
Perl/Unix/security consulting, Technical writing, Comedy, etc. etc.
See PerlTraining.Stonehenge.com for onsite and open-enrollment Perl training!