Skip to content
Fetching contributors…
Cannot retrieve contributors at this time
52 lines (35 sloc) 977 Bytes

renderer

The renderer ZCML directive can be used to override an existing existing :term:`renderer` or to add a new renderer.

Attributes

factory
A :term:`dotted Python name` referencing a callable object that accepts a renderer name and returns a :term:`renderer` object.
name
The renderer name, which is a string.

Examples

Registering a Non-Template Renderer

Registering a Template Renderer

Alternatives

The :meth:`pyramid.config.Configurator.add_renderer` method is equivalent to the renderer ZCML directive.

See Also

See also :ref:`adding_and_overriding_renderers`.

Something went wrong with that request. Please try again.