Re: [Templates] Removing wrapper at runtime

[prev] [thread] [next] [Date index for 2005/02/22]

From: Andy Wardley
Subject: Re: [Templates] Removing wrapper at runtime
Date: 08:36 on 22 Feb 2005
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
templates@xxxxxxxxxxxxxxxx.xxx
http://lists.template-toolkit.org/mailman/listinfo/templates

[Templates] Removing wrapper at runtime
Jonathan Tweed 00:08 on 22 Feb 2005

Re: [Templates] Removing wrapper at runtime
Andy Wardley 08:36 on 22 Feb 2005

Re: [Templates] Removing wrapper at runtime
Jonathan Tweed 13:34 on 22 Feb 2005

Generated at 08:56 on 15 Mar 2005 by mariachi v0.52