Package genshi :: Package template :: Module plugin :: Class MarkupTemplateEnginePlugin

Class MarkupTemplateEnginePlugin



                  object --+    
                           |    
AbstractTemplateEnginePlugin --+
                               |
                              MarkupTemplateEnginePlugin

Implementation of the plugin API for markup templates.

Nested Classes
  template_class
Implementation of the template language for XML-based templates.
Instance Methods
 
__init__(self, extra_vars_func=None, options=None)
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
 
transform(self, info, template)
Render the output to an event stream.

Inherited from AbstractTemplateEnginePlugin: load_template, render

Inherited from object: __delattr__, __getattribute__, __hash__, __new__, __reduce__, __reduce_ex__, __repr__, __setattr__, __str__

Class Variables
  extension = '.html'
  doctypes = {'html': ('html', '-//W3C//DTD HTML 4.01//EN', 'htt...
Properties

Inherited from object: __class__

Method Details

__init__(self, extra_vars_func=None, options=None)
(Constructor)

 
x.__init__(...) initializes x; see x.__class__.__doc__ for signature
Overrides: AbstractTemplateEnginePlugin.__init__

transform(self, info, template)

 
Render the output to an event stream.
Overrides: AbstractTemplateEnginePlugin.transform

Class Variable Details

doctypes

Value:
{'html': ('html',
          '-//W3C//DTD HTML 4.01//EN',
          'http://www.w3.org/TR/html4/strict.dtd'),
 'html-strict': ('html',
                 '-//W3C//DTD HTML 4.01//EN',
                 'http://www.w3.org/TR/html4/strict.dtd'),
 'html-transitional': ('html',
                       '-//W3C//DTD HTML 4.01 Transitional//EN',
...