Stas Bekman wrote:
> Please notice that I'm after in-memory caching, since again, I don't want 
> users to do any special setups, 

Hi Stas,

I'm not sure I follow how you're planning to define the templates in 
the Perl module, but as long as the templates have names, they will be 
cached as compiled in memory.

So you could define all the templates using the BLOCK option, for example:

   my $tt = Template->new({
       BLOCKS => {
         header => '...',
         footer => '...',
         ...etc...
       }
   });

As long as the $tt object is persistant (i.e. a package var) then the 
compiled templates will remain cached in memory.

Does that help?

A


_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates

Reply via email to