class Engine: (source)
Undocumented
Static Method | get |
Return the first DjangoTemplates backend that's configured, or raise ImproperlyConfigured if none are configured. |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | find |
Undocumented |
Method | find |
Undocumented |
Method | from |
Return a compiled Template object for the given template code, handling template inheritance recursively. |
Method | get |
Return a compiled Template object for the given template name, handling template inheritance recursively. |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | get |
Undocumented |
Method | render |
Render the template specified by template_name with the given context. For use in Django's test suite. |
Method | select |
Given a list of template names, return the first that can be loaded. |
Class Variable | default |
Undocumented |
Instance Variable | app |
Undocumented |
Instance Variable | autoescape |
Undocumented |
Instance Variable | builtins |
Undocumented |
Instance Variable | context |
Undocumented |
Instance Variable | debug |
Undocumented |
Instance Variable | dirs |
Undocumented |
Instance Variable | file |
Undocumented |
Instance Variable | libraries |
Undocumented |
Instance Variable | loaders |
Undocumented |
Instance Variable | string |
Undocumented |
Instance Variable | template |
Undocumented |
Instance Variable | template |
Undocumented |
Property | template |
Undocumented |
Property | template |
Undocumented |
Return the first DjangoTemplates backend that's configured, or raise ImproperlyConfigured if none are configured. This is required for preserving historical APIs that rely on a globally available, implicitly configured engine such as: >>> from django.template import Context, Template >>> template = Template("Hello {{ name }}!") >>> context = Context({'name': "world"}) >>> template.render(context) 'Hello world!'
Undocumented
Return a compiled Template object for the given template code, handling template inheritance recursively.
Return a compiled Template object for the given template name, handling template inheritance recursively.
Render the template specified by template_name with the given context. For use in Django's test suite.