Re: Can a template tell if it has been PROCESSed or INCLUDEd?

"Kiss Gabor (Bitman)" <kissg-8/[email protected]> Thu, 25 Sep 2014 19:17:50 +0200 (CEST)
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
> Any suggestions?

Just define a global variable in the outermost file:
[% SET processed = 1 %]
In the included file you will see this scalar unintialized.

(This version is not perfect because cannot detect INCLUDE+PROCESS
chains. but you can develop is necessary. :-)

Gabor