# -*- coding: utf-8 -*- """ jinja2 ~~~~~~ Jinja2 is a template engine written in pure Python. It provides a Django inspired non-XML syntax but supports inline expressions and an optional sandboxed environment. Nutshell -------- Here a small example of a Jinja2 template:: {% extends 'base.html' %} {% block title %}Memberlist{% endblock %} {% block content %} <ul> {% for user in users %} <li><a href="{{ user.url }}">{{ user.username }}</a></li> {% endfor %} </ul> {% endblock %} :copyright: (c) 2017 by the Jinja Team. :license: BSD, see LICENSE for more details. """ __docformat__ = 'restructuredtext en' __version__ = '2.10.1' # high level interface from jinja2.environment import Environment, Template # loaders from jinja2.loaders import BaseLoader, FileSystemLoader, PackageLoader, \ DictLoader, FunctionLoader, PrefixLoader, ChoiceLoader, \ ModuleLoader # bytecode caches from jinja2.bccache import BytecodeCache, FileSystemBytecodeCache, \ MemcachedBytecodeCache # undefined types from jinja2.runtime import Undefined, DebugUndefined, StrictUndefined, \ make_logging_undefined # exceptions from jinja2.exceptions import TemplateError, UndefinedError, \ TemplateNotFound, TemplatesNotFound, TemplateSyntaxError, \ TemplateAssertionError, TemplateRuntimeError # decorators and public utilities from jinja2.filters import environmentfilter, contextfilter, \ evalcontextfilter from jinja2.utils import Markup, escape, clear_caches, \ environmentfunction, evalcontextfunction, contextfunction, \ is_undefined, select_autoescape __all__ = [ 'Environment', 'Template', 'BaseLoader', 'FileSystemLoader', 'PackageLoader', 'DictLoader', 'FunctionLoader', 'PrefixLoader', 'ChoiceLoader', 'BytecodeCache', 'FileSystemBytecodeCache', 'MemcachedBytecodeCache', 'Undefined', 'DebugUndefined', 'StrictUndefined', 'TemplateError', 'UndefinedError', 'TemplateNotFound', 'TemplatesNotFound', 'TemplateSyntaxError', 'TemplateAssertionError', 'TemplateRuntimeError', 'ModuleLoader', 'environmentfilter', 'contextfilter', 'Markup', 'escape', 'environmentfunction', 'contextfunction', 'clear_caches', 'is_undefined', 'evalcontextfilter', 'evalcontextfunction', 'make_logging_undefined', 'select_autoescape', ] def _patch_async(): from jinja2.utils import have_async_gen if have_async_gen: from jinja2.asyncsupport import patch_all patch_all() _patch_async() del _patch_async
Name | Type | Size | Permission | Actions |
---|---|---|---|---|
__pycache__ | Folder | 0755 |
|
|
__init__.py | File | 2.55 KB | 0644 |
|
_compat.py | File | 2.54 KB | 0644 |
|
_identifier.py | File | 1.69 KB | 0644 |
|
asyncfilters.py | File | 4.05 KB | 0644 |
|
asyncsupport.py | File | 7.69 KB | 0644 |
|
bccache.py | File | 12.49 KB | 0644 |
|
compiler.py | File | 63.85 KB | 0644 |
|
constants.py | File | 1.59 KB | 0644 |
|
debug.py | File | 11.76 KB | 0644 |
|
defaults.py | File | 1.37 KB | 0644 |
|
environment.py | File | 49.66 KB | 0644 |
|
exceptions.py | File | 4.32 KB | 0644 |
|
ext.py | File | 23.93 KB | 0644 |
|
filters.py | File | 36.36 KB | 0644 |
|
idtracking.py | File | 8.98 KB | 0644 |
|
lexer.py | File | 27.89 KB | 0644 |
|
loaders.py | File | 16.97 KB | 0644 |
|
meta.py | File | 4.24 KB | 0644 |
|
nativetypes.py | File | 7.14 KB | 0644 |
|
nodes.py | File | 30.13 KB | 0644 |
|
optimizer.py | File | 1.68 KB | 0644 |
|
parser.py | File | 35.03 KB | 0644 |
|
runtime.py | File | 27.1 KB | 0644 |
|
sandbox.py | File | 16.71 KB | 0644 |
|
tests.py | File | 4.14 KB | 0644 |
|
utils.py | File | 20.29 KB | 0644 |
|
visitor.py | File | 3.24 KB | 0644 |
|