class Engine:
Undocumented
Static Method | get_default |
Return the first DjangoTemplates backend that's configured, or raise ImproperlyConfigured if none are configured. |
Method | from_string |
Return a compiled Template object for the given template code, handling template inheritance recursively. |
Method | get_template |
Return a compiled Template object for the given template name, handling template inheritance recursively. |
Method | select_template |
Given a list of template names, return the first that can be loaded. |
Method | __init__ |
Undocumented |
Method | __repr__ |
Undocumented |
Method | find_template |
Undocumented |
Method | find_template_loader |
Undocumented |
Method | get_template_builtins |
Undocumented |
Method | get_template_libraries |
Undocumented |
Method | get_template_loaders |
Undocumented |
Method | render_to_string |
Render the template specified by template_name with the given context. For use in Django's test suite. |
Class Variable | default_builtins |
Undocumented |
Instance Variable | app_dirs |
Undocumented |
Instance Variable | autoescape |
Undocumented |
Instance Variable | builtins |
Undocumented |
Instance Variable | context_processors |
Undocumented |
Instance Variable | debug |
Undocumented |
Instance Variable | dirs |
Undocumented |
Instance Variable | file_charset |
Undocumented |
Instance Variable | libraries |
Undocumented |
Instance Variable | loaders |
Undocumented |
Instance Variable | string_if_invalid |
Undocumented |
Instance Variable | template_builtins |
Undocumented |
Instance Variable | template_libraries |
Undocumented |
Property | template_context_processors |
Undocumented |
Property | template_loaders |
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