class BaseEngine:
Known subclasses: django.template.backends.django.DjangoTemplates
, django.template.backends.jinja2.Jinja2
, django.template.backends.dummy.TemplateStrings
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. |
django.template.backends.django.DjangoTemplates
, django.template.backends.jinja2.Jinja2
, django.template.backends.dummy.TemplateStrings
Initialize the template engine.
params
is a dict of configuration settings.
django.template.backends.django.DjangoTemplates
, django.template.backends.jinja2.Jinja2
, django.template.backends.dummy.TemplateStrings
Create and return a template for the given source code.
This method is optional.
django.template.backends.django.DjangoTemplates
, django.template.backends.jinja2.Jinja2
, django.template.backends.dummy.TemplateStrings
Load and return a template for the given name.
Raise TemplateDoesNotExist if no such template exists.
Iterate over candidate files for template_name.
Ignore files that don't lie inside configured template dirs to avoid directory traversal attacks.