class documentation

class DjangoTemplates(BaseEngine):

View In Hierarchy

Undocumented

Method __init__ Initialize the template engine.
Method from​_string Create and return a template for the given source code.
Method get​_template Load and return a template for the given name.
Method get​_templatetag​_libraries Return a collation of template tag libraries from installed applications and the supplied custom_libraries argument.
Class Variable app​_dirname Undocumented
Instance Variable engine Undocumented

Inherited from BaseEngine:

Method iter​_template​_filenames Iterate over candidate files for template_name.
Instance Variable app​_dirs Undocumented
Instance Variable dirs Undocumented
Instance Variable name Undocumented
Property template​_dirs Return a list of directories to search for templates.
def __init__(self, params):

Initialize the template engine.

params is a dict of configuration settings.

def from_string(self, template_code):

Create and return a template for the given source code.

This method is optional.

def get_template(self, template_name):

Load and return a template for the given name.

Raise TemplateDoesNotExist if no such template exists.

def get_templatetag_libraries(self, custom_libraries):
Return a collation of template tag libraries from installed applications and the supplied custom_libraries argument.
app_dirname: str =
engine =

Undocumented