On Tue, 3 Jun 2003, Paul Makepeace wrote:
> Hello -
>
> My attempt to pass in a template parameter named "component" is stymied
> by some behind-the-scenes clobbering. I don't know my way around the
> Template sources but the line in Template::Context,
[snip]
> Is this intentional, documented? I didn't see anything to suggest it
> was.
yes & yes :)
>From Template::Manaual::Variables...
component
The 'component' variable is like 'template' but always
contains a reference to the current, innermost tem-
plate component being processed. In the main tem-
plate, the 'template' and 'component' variable will
reference the same Template::Document object. In any
other template component called from the main tem-
plate, the 'template' variable will remain unchanged,
but 'component' will contain a new reference to the
current component.
S.
_______________________________________________
templates mailing list
[EMAIL PROTECTED]
http://lists.template-toolkit.org/mailman/listinfo/templates