Jump to >

This documentation covers the in-development release of Djblets. You can see the latest stable docs or all previous 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.