class documentation

class BaseEngine:

Known subclasses: django.template.backends.django.DjangoTemplates, django.template.backends.jinja2.Jinja2, django.template.backends.dummy.TemplateStrings

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 iter​_template​_filenames Iterate over candidate files for template_name.
Instance Variable app​_dirs Undocumented
Instance Variable dirs Undocumented
Instance Variable name Undocumented
Property app​_dirname 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 iter_template_filenames(self, template_name):

Iterate over candidate files for template_name.

Ignore files that don't lie inside configured template dirs to avoid directory traversal attacks.

app_dirs =

Undocumented

dirs =

Undocumented

name =

Undocumented

@cached_property
template_dirs =
Return a list of directories to search for templates.