Skip to content

engine

Backend-agnostic templating engine.

Classes:

TemplateDoesNotExist

Bases: RuntimeError

Raised when the named template does not exist in the backend template manifest.

TemplateRenderingError

TemplateRenderingError(response, *args, **kwargs)

Bases: RuntimeError

Raised when the backend render returned an error HTTP response.

Attributes:

response instance-attribute

response = response

Engine

Engine(manifest_url)

Methods:

Attributes:

manifest instance-attribute

manifest = fetch_manifest(manifest_url)

manifest_url instance-attribute

manifest_url = manifest_url

has_template

has_template(template_name)

render

render(template_name, context=None)