Tags:
create new tag
, view all tags

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.

Topic revision: r1 - 2012-07-03 - TWikiGuest
 
This site is powered by the TWiki collaboration platformCopyright © 1999-2019 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback 京ICP备05049167号
Note: Please contribute updates to this topic on TWiki.org at TWiki:TWiki.VarTEMPLATETOOLKIT.