diff options
| author | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-11-11 16:32:19 +0100 |
|---|---|---|
| committer | Aymeric Augustin <aymeric.augustin@m4x.org> | 2014-12-28 16:08:31 +0100 |
| commit | 1acfd624d60160e00c9cef113b9d8af65d6b2a72 (patch) | |
| tree | dfed46696aeb1cda976bd98a0e2405eb1fd3888a /django/template/__init__.py | |
| parent | b19693e6d8a509eaea282d250310b4ce3e94fe8d (diff) | |
Added initial support for loading template engines.
Diffstat (limited to 'django/template/__init__.py')
| -rw-r--r-- | django/template/__init__.py | 14 |
1 files changed, 13 insertions, 1 deletions
diff --git a/django/template/__init__.py b/django/template/__init__.py index 24a51ac20d..31f3078bad 100644 --- a/django/template/__init__.py +++ b/django/template/__init__.py @@ -1,3 +1,15 @@ +### Multiple Template Engines + +from .utils import EngineHandler + + +engines = EngineHandler() + +__all__ = ('engines',) + + +### Django Template Language + # Public exceptions from .base import (TemplateDoesNotExist, TemplateSyntaxError, # NOQA VariableDoesNotExist) @@ -14,4 +26,4 @@ from .base import resolve_variable # NOQA from .base import Library # NOQA -__all__ = ('Template', 'Context', 'RequestContext') +__all__ += ('Template', 'Context', 'RequestContext') |
