class documentation
class BaseEngine: (source)
Known subclasses: django.template.backends.django.DjangoTemplates
, django.template.backends.dummy.TemplateStrings
, django.template.backends.jinja2.Jinja2
Undocumented
Method | __init__ |
Initialize the template engine. |
Method | from |
Create and return a template for the given source code. |
Method | get |
Load and return a template for the given name. |
Method | iter |
Iterate over candidate files for template_name. |
Instance Variable | app |
Undocumented |
Instance Variable | dirs |
Undocumented |
Instance Variable | name |
Undocumented |
Property | app |
Undocumented |
Property | template |
Return a list of directories to search for templates. |
overridden in
django.template.backends.django.DjangoTemplates
, django.template.backends.dummy.TemplateStrings
, django.template.backends.jinja2.Jinja2
Initialize the template engine. `params` is a dict of configuration settings.
overridden in
django.template.backends.django.DjangoTemplates
, django.template.backends.dummy.TemplateStrings
, django.template.backends.jinja2.Jinja2
Create and return a template for the given source code. This method is optional.
overridden in
django.template.backends.django.DjangoTemplates
, django.template.backends.dummy.TemplateStrings
, django.template.backends.jinja2.Jinja2
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.