The Buffet class is accessible via the pylons.templating module.
Buffet implements template language plug-in support modeled highly on the Buffet Project from which this class inherits its name.
Initialize the Buffet renderer, and optionally set a default engine/options
Prepare a template engine for use
This method must be run before the render method is called so that the template_root and options can be set. Template engines can also be aliased if you wish to use multiplate configurations of the same template engines, or prefer a shorter name when rendering a template with the engine of your choice.
Render a template using a template engine plug-in
To use templates it is expected that you will attach data to be used in the template to the c variable which is available in the controller and the template.
When porting code from other projects it is sometimes easier to use an exisitng dictionary which can be specified with namespace.
Caching options (uses Beaker caching middleware)
The minimum key required to trigger caching is cache_expire='never' which will cache the template forever seconds with no key.
All other keyword options are passed directly to the template engine used.
See the source for more information.