pyramid_mako API


Set up standard configurator registrations. Use via:

config = Configurator()

Once this function has been invoked, the .mako and .mak renderers are available for use in Pyramid. This can be overridden and more may be added via the config.add_mako_renderer directive. See add_mako_renderer() documentation for more information.

pyramid_mako.add_mako_renderer(config, extension, settings_prefix='mako.')

Register a Mako renderer for a template extension.

This function is available on the Pyramid configurator after including the package:

config.add_mako_renderer('.html', settings_prefix='mako.')

The renderer will load its configuration from a prefix in the Pyramid settings dictionary. The default prefix is ‘mako.’.