On Wed, 6 Mar 2002, Rasoul Hajikhani wrote: > Robert Landrum wrote: > > #startup.pl > > > > open(FILE,"</path/to/tmpl"); > > $MY::TEMPLATE .= while(<FILE>); > > close(FILE); > Thanks... But I use Template Toolkit to generate a dynamic file. How > would the above code work in that situation?! Not how I'd do it, although I'm pretty sure that TT2 has it's own caching mechanism, however in answer to this 'particular question' could you not overload TT's service object to use the preloaded instantiation similar, or more specialised than the one above. (SEE ALSO man Template::Service ..probably) :)
fiq btw Apache::Template does let you control caching of templates in memory.