I almost sent the same thing, till I realized he's talking about one special internal variable. Sadly, I'd say that it works right under INCLUDE thanks to the localization features you refer to but actually needs to be specially handled as localized under PROCESS.Right. As the manual (http://www.template-toolkit.org/docs/green/Manual/Variables.html#Special_Variables) states:
"The 'component' variable is like 'template' but always contains a reference to the current, innermost template component being processed. In the main template, the 'template' and 'component' variable will reference the same Template::Document object. In any other template component called from the main template, the 'template' variable will remain unchanged, but 'component' will contain a new reference to the current component."
In other words, 'component' should refer to the current template being processed, not the last one that was processed, unlike other variables stored in the Stash. This works with INCLUDE (as a side effect of INCLUDE localizing everything) but needs special-casing with PROCESS.
-myk
_______________________________________________ templates mailing list [EMAIL PROTECTED] http://lists.template-toolkit.org/mailman/listinfo/templates
