class documentation

class BuiltinTemplateLoader(TemplateBridge, BaseLoader): (source)

View In Hierarchy

Interfaces the rendering environment of jinja2 for use in Sphinx.

Method get_source Undocumented
Method init Called by the builder to initialize the template system.
Method newest_template_mtime Called by the builder to determine if output files are outdated because of template changes. Return the mtime of the newest template file that was changed. The default implementation returns ``0``.
Method render Called by the builder to render a template given as a filename with a specified context (a Python dictionary).
Method render_string Called by the builder to render a template given as a string with a specified context (a Python dictionary).
Instance Variable environment Undocumented
Instance Variable loaders Undocumented
Instance Variable pathchain Undocumented
Instance Variable templatepathlen Undocumented
def get_source(self, environment, template): (source)

Undocumented

Parameters
environment:EnvironmentUndocumented
template:strUndocumented
Returns
tuple[str, str, Callable]Undocumented
def init(self, builder, theme=None, dirs=None): (source)

Called by the builder to initialize the template system. *builder* is the builder object; you'll probably want to look at the value of ``builder.config.templates_path``. *theme* is a :class:`sphinx.theming.Theme` object or None; in the latter case, *dirs* can be list of fixed directories to look for templates.

Parameters
builder:BuilderUndocumented
theme:Theme|NoneUndocumented
dirs:list[str]|NoneUndocumented
def newest_template_mtime(self): (source)

Called by the builder to determine if output files are outdated because of template changes. Return the mtime of the newest template file that was changed. The default implementation returns ``0``.

Returns
floatUndocumented
def render(self, template, context): (source)

Called by the builder to render a template given as a filename with a specified context (a Python dictionary).

Parameters
template:strUndocumented
context:dictUndocumented
Returns
strUndocumented
def render_string(self, source, context): (source)

Called by the builder to render a template given as a string with a specified context (a Python dictionary).

Parameters
source:strUndocumented
context:dictUndocumented
Returns
strUndocumented
environment = (source)

Undocumented

Undocumented

pathchain = (source)

Undocumented

templatepathlen = (source)

Undocumented