>>>>> "Myk" == Myk Melez <[EMAIL PROTECTED]> writes:
Myk> Is there any way to do this (i.e. have ttree pre-process a template
Myk> once and make its context available to all templates that subsequently
Myk> get processed)?
Anything you leave in "global" will be visible the next time with the
same context. So, you could have a PRE_PROCESS item that does:
[%
IF global.cached.the_value;
the_value = global.cached.the_value;
ELSE;
... compute the_value ...
global.cached.the_value = the_value;
END;
%]
and then use the_value later in your templates.
--
Randal L. Schwartz - Stonehenge Consulting Services, Inc. - +1 503 777 0095
<[EMAIL PROTECTED]> <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!
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates