On Thu, May 20, 2010 at 12:30 PM, Felipe Gasper (cPanel)
<[email protected]> wrote:
> The INCLUDE and PROCESS directives result in Perl code (in the compiled
> template) that goes to the filesystem and retrieves the
> INCLUDEd/PROCESSed template at runtime.

Only if you've never run this template before.  Included templates get
cached in the same way as any other template.

> Is it possible to have a directive that actually *compiles* the
> INCLUDEd/PROCESSed template at compile time and inserts it directly into
> the parent template's compiled Perl code?

It really wouldn't save you much.

The bigger hit comes from copying the stash for INCLUDE calls.  If you
don't need the stash to be isolated for the template you're calling,
use PROCESS instead and it will save some time.

- Perrin

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to