petdance has asked for the wisdom of the Perl Monks concerning the following question:
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?
Thanks,
Andy
|
---|
Replies are listed 'Best First'. | |
---|---|
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 | |
Re: Can a Template Toolkit template know if it has been PROCESSed or INCLUDEd?
by wrog (Friar) on Sep 25, 2014 at 15:54 UTC |