Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(221)

Side by Side Diff: appengine/components/components/third_party/jinja2/__init__.py

Issue 1481573002: Update jinja2 to master (between 2.8 and 2.8.1); fix urlencode bug. (Closed) Base URL: git@github.com:luci/luci-py.git@1_tools
Patch Set: Add import hack Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(Empty)
1 # -*- coding: utf-8 -*-
2 """
3 jinja2
4 ~~~~~~
5
6 Jinja2 is a template engine written in pure Python. It provides a
7 Django inspired non-XML syntax but supports inline expressions and
8 an optional sandboxed environment.
9
10 Nutshell
11 --------
12
13 Here a small example of a Jinja2 template::
14
15 {% extends 'base.html' %}
16 {% block title %}Memberlist{% endblock %}
17 {% block content %}
18 <ul>
19 {% for user in users %}
20 <li><a href="{{ user.url }}">{{ user.username }}</a></li>
21 {% endfor %}
22 </ul>
23 {% endblock %}
24
25
26 :copyright: (c) 2010 by the Jinja Team.
27 :license: BSD, see LICENSE for more details.
28 """
29 __docformat__ = 'restructuredtext en'
30 __version__ = '2.9.dev'
31
32 # high level interface
33 from jinja2.environment import Environment, Template
34
35 # loaders
36 from jinja2.loaders import BaseLoader, FileSystemLoader, PackageLoader, \
37 DictLoader, FunctionLoader, PrefixLoader, ChoiceLoader, \
38 ModuleLoader
39
40 # bytecode caches
41 from jinja2.bccache import BytecodeCache, FileSystemBytecodeCache, \
42 MemcachedBytecodeCache
43
44 # undefined types
45 from jinja2.runtime import Undefined, DebugUndefined, StrictUndefined, \
46 make_logging_undefined
47
48 # exceptions
49 from jinja2.exceptions import TemplateError, UndefinedError, \
50 TemplateNotFound, TemplatesNotFound, TemplateSyntaxError, \
51 TemplateAssertionError
52
53 # decorators and public utilities
54 from jinja2.filters import environmentfilter, contextfilter, \
55 evalcontextfilter
56 from jinja2.utils import Markup, escape, clear_caches, \
57 environmentfunction, evalcontextfunction, contextfunction, \
58 is_undefined
59
60 __all__ = [
61 'Environment', 'Template', 'BaseLoader', 'FileSystemLoader',
62 'PackageLoader', 'DictLoader', 'FunctionLoader', 'PrefixLoader',
63 'ChoiceLoader', 'BytecodeCache', 'FileSystemBytecodeCache',
64 'MemcachedBytecodeCache', 'Undefined', 'DebugUndefined',
65 'StrictUndefined', 'TemplateError', 'UndefinedError', 'TemplateNotFound',
66 'TemplatesNotFound', 'TemplateSyntaxError', 'TemplateAssertionError',
67 'ModuleLoader', 'environmentfilter', 'contextfilter', 'Markup', 'escape',
68 'environmentfunction', 'contextfunction', 'clear_caches', 'is_undefined',
69 'evalcontextfilter', 'evalcontextfunction', 'make_logging_undefined',
70 ]
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698