Hi Andy

Is this possible to do in TT?

Nope, there's nothing I can think of that will allow you to determine that from within the template.

One work-around would be to INCLUDE a local BLOCK inside the template.

  [% INCLUDE my_local_block %]
  [% BLOCK my_local_block %]
     ....
  [% END %]

It's a bit clumsy but it does at least ensure that the template markup in the BLOCK will always be protected by an INCLUDE, even if the template is loaded by a PROCESS.

Cheers
Andy


_______________________________________________
templates mailing list
templates@template-toolkit.org
http://mail.template-toolkit.org/mailman/listinfo/templates

Reply via email to