Package genshi :: Package template :: Module directives

Module directives

Implementation of the various template directives.
Classes
  AttrsDirective
Implementation of the py:attrs template directive.
  ContentDirective
Implementation of the py:content template directive.
  DefDirective
Implementation of the py:def template directive.
  ForDirective
Implementation of the py:for template directive for repeating an element based on an iterable in the context data.
  IfDirective
Implementation of the py:if template directive for conditionally excluding elements from being output.
  MatchDirective
Implementation of the py:match template directive.
  ReplaceDirective
Implementation of the py:replace template directive.
  StripDirective
Implementation of the py:strip template directive.
  ChooseDirective
Implementation of the py:choose directive for conditionally selecting one of several body elements to display.
  WhenDirective
Implementation of the py:when directive for nesting in a parent with the py:choose directive.
  OtherwiseDirective
Implementation of the py:otherwise directive for nesting in a parent with the py:choose directive.
  WithDirective
Implementation of the py:with template directive, which allows shorthand access to variables and expressions.