TEMPLATETOOLKIT -- pipe a topic through Template Toolkit

  • Syntax example: %TEMPLATETOOLKIT{"on" WRAPPER="myTTtemplate.tt2"}%
  • If present in a topic with a value of "on", the whole topic will be processed by TT.
  • A configuration variable named $TWiki::cfg{Plugins}{TemplateToolkitPlugin}{UseTT} can be used to set a site-wide default
  • Supported Parameters:
    Parameter: Description: Default:
    "on" / "off" Switch to control TT usage for the current topic. A value "on" or "1" will activate TT processing for the current topic, every other value will disable it. To retain the configuration setting, don't specify this parameter. Config variable {UseTT}
    WRAPPER="tt_template" The TT wrapper template into which the topic will be embedded. The wrapper must explicitly include the topic content, which is available as a TT variable [% content %]. no wrapper

See TemplateToolkitPlugin for details.

Curriculum Hub>VarTEMPLATETOOLKIT (2009-07-27, TWikiAdmin )