AnewtRenderer class

Base Renderer class.

Class Overview

Base Renderer class.

This class is a base renderer which should be extended to match your own needs. The default render() method dispatches the actual rendering to your own custom functions.

Public Methods

render()

Render to a string.

This method queries the render-mode property and uses that string to call another method to do the actual rendering. The name of the real rendering method is formed by prepending render_ to the value of the render-mode property. Example: if the render-mode property is set to list, this method calls the render_list method. If the render-mode property is not set, the method render_default() is used as the default fallback.

Return value

A string or object, e.g. a AnewtXMLDomNode, intended to be displayed by calling to_string().

Inheritance

Base Classes

Inherited members