sphinx.application.TemplateBridge

class sphinx.application.TemplateBridge

This class defines the interface for a “template bridge”, that is, a class that renders templates given a template name and a context.

Note

autosummary/class.rst method block overloading

__init__()

x.__init__(...) initializes x; see help(type(x)) for signature

Methods

init(builder[, theme, dirs]) Called by the builder to initialize the template system.
newest_template_mtime() Called by the builder to determine if output files are outdated because of template changes.
render(template, context) Called by the builder to render a template given as a filename with a specified context (a Python dictionary).
render_string(template, context) Called by the builder to render a template given as a string with a specified context (a Python dictionary).