On Thu, 25 Sep 2014 12:35:20 -0500 Andy Lester <a...@petdance.com> wrote:
> However, that does give me an idea. Perhaps if I look for an > app-wide global variable that should always exist, and it's not > there, then I've been INCLUDEd correctly. 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. [1] http://template-toolkit.org/docs/manual/Directives.html#section_INCLUDE -- C. Chad Wallace, B.Sc. The Lodging Company http://www.lodgingcompany.com/ OpenPGP Public Key ID: 0x262208A0 _______________________________________________ templates mailing list templates@template-toolkit.org http://mail.template-toolkit.org/mailman/listinfo/templates