__init__.py 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839
  1. """Jinja is a template engine written in pure Python. It provides a
  2. non-XML syntax that supports inline expressions and an optional
  3. sandboxed environment.
  4. """
  5. from .bccache import BytecodeCache as BytecodeCache
  6. from .bccache import FileSystemBytecodeCache as FileSystemBytecodeCache
  7. from .bccache import MemcachedBytecodeCache as MemcachedBytecodeCache
  8. from .environment import Environment as Environment
  9. from .environment import Template as Template
  10. from .exceptions import TemplateAssertionError as TemplateAssertionError
  11. from .exceptions import TemplateError as TemplateError
  12. from .exceptions import TemplateNotFound as TemplateNotFound
  13. from .exceptions import TemplateRuntimeError as TemplateRuntimeError
  14. from .exceptions import TemplatesNotFound as TemplatesNotFound
  15. from .exceptions import TemplateSyntaxError as TemplateSyntaxError
  16. from .exceptions import UndefinedError as UndefinedError
  17. from .loaders import BaseLoader as BaseLoader
  18. from .loaders import ChoiceLoader as ChoiceLoader
  19. from .loaders import DictLoader as DictLoader
  20. from .loaders import FileSystemLoader as FileSystemLoader
  21. from .loaders import FunctionLoader as FunctionLoader
  22. from .loaders import ModuleLoader as ModuleLoader
  23. from .loaders import PackageLoader as PackageLoader
  24. from .loaders import PrefixLoader as PrefixLoader
  25. from .loaders import ResourceLoader as ResourceLoader
  26. from .runtime import ChainableUndefined as ChainableUndefined
  27. from .runtime import DebugUndefined as DebugUndefined
  28. from .runtime import make_logging_undefined as make_logging_undefined
  29. from .runtime import StrictUndefined as StrictUndefined
  30. from .runtime import Undefined as Undefined
  31. from .utils import clear_caches as clear_caches
  32. from .utils import is_undefined as is_undefined
  33. from .utils import pass_context as pass_context
  34. from .utils import pass_environment as pass_environment
  35. from .utils import pass_eval_context as pass_eval_context
  36. from .utils import select_autoescape as select_autoescape
  37. __version__ = "3.1.4"