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

Andy Lester <andy-U7RegYgSe6NWk0Htik3J/[email protected]> Thu, 25 Sep 2014 13:20:27 -0500
Newsgroups gmane.comp.lang.perl.modules.template-toolkit
Message-ID <[email protected]>
On Sep 25, 2014, at 1:13 PM, Chad Wallace <[email protected]> wrote:

> This won't work.  That variable will be there in an INCLUDE as well,
> because, "The 'INCLUDE' directive localises (i.e. copies) all variables
> before processing the template."[1]  It doesn't give you a clean slate.


Argh, thanks for catching my leap in logic.  You saved me the 10 minutes of trying it out.

I'll try Andy's version later.  Thanks, all.

xoa

--
Andy Lester => www.petdance.com

_______________________________________________
templates mailing list
[email protected]
http://mail.template-toolkit.org/mailman/listinfo/templates