I have some Template Toolkit templates that must only be invoked with INCLUDE, not PROCESS, because they set variables that could have global side effects, and INCLUDE localizes the variables before handling the template. I would like to put some sort of assertion in the template that checks to see if it was called with INCLUDE and not PROCESS. In order to do that, I need to be able to tell, in the template, how the template was invoked.
Is this possible to do in TT? I have looked at the "component" variable inside the template, and I see no difference between the two if a file is PROCESSed vs. INCLUDEd. Any suggestions? Thanks, Andy -- Andy Lester => www.petdance.com
_______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates