On Saturday, Dec 28, 2002, at 14:19 Europe/London, <[EMAIL PROTECTED]> wrote:

In XPathScript.pm import_template() line 450, include_file() is
invoked. My question is:

Is
    return '' if grep {$_ eq $filename} @{$stash->{$key}{includes}};

in include_file line 293 necessary? The test script works after I've
commented the said line. Or perhaps $stash->{$key} should have been
re-initialized elsewhere. I am not very sure how AxKit's caching system
works; hope someone can help out.
Ah. That line is there to prevent recursive includes. But I guess it doesn't work in the case of import_template(). Perhaps what we need is a flag passed to include_file() to say "Don't remember the stash here".

Matt.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to