__init__.py 1.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. # -*- coding: utf-8 -*-
  2. """Jinja is a template engine written in pure Python. It provides a
  3. non-XML syntax that supports inline expressions and an optional
  4. sandboxed environment.
  5. """
  6. from markupsafe import escape
  7. from markupsafe import Markup
  8. from .bccache import BytecodeCache
  9. from .bccache import FileSystemBytecodeCache
  10. from .bccache import MemcachedBytecodeCache
  11. from .environment import Environment
  12. from .environment import Template
  13. from .exceptions import TemplateAssertionError
  14. from .exceptions import TemplateError
  15. from .exceptions import TemplateNotFound
  16. from .exceptions import TemplateRuntimeError
  17. from .exceptions import TemplatesNotFound
  18. from .exceptions import TemplateSyntaxError
  19. from .exceptions import UndefinedError
  20. from .filters import contextfilter
  21. from .filters import environmentfilter
  22. from .filters import evalcontextfilter
  23. from .loaders import BaseLoader
  24. from .loaders import ChoiceLoader
  25. from .loaders import DictLoader
  26. from .loaders import FileSystemLoader
  27. from .loaders import FunctionLoader
  28. from .loaders import ModuleLoader
  29. from .loaders import PackageLoader
  30. from .loaders import PrefixLoader
  31. from .loaders import ResourceLoader
  32. from .runtime import ChainableUndefined
  33. from .runtime import DebugUndefined
  34. from .runtime import make_logging_undefined
  35. from .runtime import StrictUndefined
  36. from .runtime import Undefined
  37. from .utils import clear_caches
  38. from .utils import contextfunction
  39. from .utils import environmentfunction
  40. from .utils import evalcontextfunction
  41. from .utils import is_undefined
  42. from .utils import select_autoescape
  43. __version__ = "2.11.3"