[Templates] INCLUDE vs. PROCESS vs. MACRO

Josh Rosenbaum josh@infogears.com
Thu, 07 Jun 2007 14:49:00 -0600


Bill Moseley wrote:
[SNIP]
>> my $stash = $context->localise($params);
> 
> Ah, I saw that and thought it was passing the parameters to localize
> and to save in the stash.
> 
> localize() is created at run time?
> 
> moseley@bumby:~/Template2$ fgrep -r 'localize' lib
> lib/Template/Context.pm:# can handle INCLUDE calls: the stash will be localized.
> lib/Template/Context.pm:    my ($self, $template, $params, $localize) = @_;
> lib/Template/Context.pm:                 $localize ? '<localized>' : '<unlocalized>', ')')
> lib/Template/Context.pm:    if ($localize) {
> lib/Template/Context.pm:            unless ($localize) {
> lib/Template/Context.pm:    if ($localize) {
> lib/Template/Context.pm:    return $self->process($template, $params, 'localize me!');


The routine is spelled localise. ;) (Notice s instead of z.)

-- Josh