Package turbogears :: Package view :: Module genshisupport

Module genshisupport

source code

Template support for Genshi template engine.

This module implements a sub-class of ``genshi.template.plugin.MarkupTemplateEnginePlugin``, to support our extension to the Buffet templating API that allows to pass additional template engine options as keyword arguments to the ``render()`` method of engines.

This is necessary, for example, to allow us to pass different doctypes to Genshi when rendering to different XML-based formats, i.e. HTML, XHML, XML, RSS, etc. or to omit the doctype all together.

Classes
  TGGenshiTemplatePlugin
Custom Genshi template engine plugin supporting Buffet API extensions.