That's brilliant. Thank you.

Jonathan

On 22 Feb 2005, at 08:36, Andy Wardley wrote:

Jonathan Tweed wrote:
I have a template toolkit object that automatically adds a wrapper to
the processed template. Is there any way to override this on a
particular call to process so that the wrapper does not get added?

You can use a META tag to disable it.

For example, in your wrapper:

  [% IF template.naked;
        content;
     ELSE;
        content WRAPPER site/wrapper;
     END
  %]

Then in your template you can add a tag like this to disable the WRAPPER:

   [% META naked=1 %]

HTH
A


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


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

Reply via email to