[Templates] Re: Restricting access when RELATIVE is on
Mihai Bazon
mihai@bazon.net
Sun, 14 Jan 2007 11:50:48 +0200
Josh Rosenbaum wrote:
> You don't need RELATIVE to do this. This should work by just doing:
> [% PROCESS bar/baz/other.tt %]
>
> Or you can add /foo/bar/ to your INCLUDE_PATH to do your baz/other.tt
> method. Each path there is checked for your specified template.
That's exactly what I wanted to avoid. :-) I want to process a template
relative to the current one.
With HTML::Mason, for instance, I can say: <& ./foo &> to process a
component relative to the "current directory" (which is the directory of
the template that's currently running). I can figure out an example
where this might be useful, if you wish..
I see no reason why TT wouldn't allow this, but it seems it doesn't for now.
-Mihai