Re: [Templates] PRE_PROCESS question
[prev]
[thread]
[next]
[Date index for 2005/05/20]
Bruce McKenzie wrote:
> My current bafflement is with the PRE_PROCESS process.
>
> I have a bunch of macros in a file called "macros.tt2"
> [in WebApp.pm]
> $self->tt_process( 'test.tt2', { q => $q, t => $t1 , PRE_PROCESS =>
> 'macros.tt2'} ); # the first two vars arrive as expected, but no macros
Configuration options like "PRE_PROCESS" are used at the template object
creation time, not tempate process time.
http://search.cpan.org/dist/Template-Toolkit/lib/Template.pm#SYNOPSIS
Somewhere, when creating your template object with something like:
my $tt = Template->new(...)
You need to augment the "...", be it a variable or a raw hash-block,
with the PRE_PROCESS setting. You can't send it to the template as a
variable.
--mark mills
_______________________________________________
templates mailing list
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates
 |
 |
Re: [Templates] PRE_PROCESS question
Mark Mills 13:20 on 20 May 2005
|