Jump to >

This documentation covers Djblets 2.0. You can see the latest Djblets documentation or all other versions.

djblets.extensions.loaders

Template loaders for extensions.

class Loader(engine)[source]

Bases: django.template.loaders.base.Loader

Loads templates found within an extension.

This will look through all enabled extensions and attempt to fetch the named template under the templates directory within the extension’s package.

This should be added last to the list of template loaders.

New in version 0.9.

is_usable = True[source]
load_template_source(template_name, template_dirs=None)[source]

Load templates from enabled extensions.