Problems? Is your data what you think it is? | |
PerlMonks |
Re: Can a Template Toolkit template know if it has been PROCESSed or INCLUDEd?by petdance (Parson) |
on Sep 25, 2014 at 16:29 UTC ( [id://1102004]=note: print w/replies, xml ) | Need Help?? |
Andy Wardley just wrote this reply on the TT mailing list:
Nope, there's nothing I can think of that will allow you to determine that from within the template. One work-around would be to INCLUDE a local BLOCK inside the template.It's a bit clumsy but it does at least ensure that the template markup in the BLOCK will always be protected by an INCLUDE, even if the template is loaded by a PROCESS.
xoxo,
In Section
Seekers of Perl Wisdom
|
|