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

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

Issue 23506004: Update Jinja2 (Python template library) to 2.7.1 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebased Created 7 years, 3 months 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 | Annotate | Revision Log
« no previous file with comments | « third_party/jinja2/README.chromium ('k') | third_party/jinja2/_compat.py » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 # -*- coding: utf-8 -*- 1 # -*- coding: utf-8 -*-
2 """ 2 """
3 jinja2 3 jinja2
4 ~~~~~~ 4 ~~~~~~
5 5
6 Jinja2 is a template engine written in pure Python. It provides a 6 Jinja2 is a template engine written in pure Python. It provides a
7 Django inspired non-XML syntax but supports inline expressions and 7 Django inspired non-XML syntax but supports inline expressions and
8 an optional sandboxed environment. 8 an optional sandboxed environment.
9 9
10 Nutshell 10 Nutshell
11 -------- 11 --------
12 12
13 Here a small example of a Jinja2 template:: 13 Here a small example of a Jinja2 template::
14 14
15 {% extends 'base.html' %} 15 {% extends 'base.html' %}
16 {% block title %}Memberlist{% endblock %} 16 {% block title %}Memberlist{% endblock %}
17 {% block content %} 17 {% block content %}
18 <ul> 18 <ul>
19 {% for user in users %} 19 {% for user in users %}
20 <li><a href="{{ user.url }}">{{ user.username }}</a></li> 20 <li><a href="{{ user.url }}">{{ user.username }}</a></li>
21 {% endfor %} 21 {% endfor %}
22 </ul> 22 </ul>
23 {% endblock %} 23 {% endblock %}
24 24
25 25
26 :copyright: (c) 2010 by the Jinja Team. 26 :copyright: (c) 2010 by the Jinja Team.
27 :license: BSD, see LICENSE for more details. 27 :license: BSD, see LICENSE for more details.
28 """ 28 """
29 __docformat__ = 'restructuredtext en' 29 __docformat__ = 'restructuredtext en'
30 __version__ = '2.6' 30 __version__ = '2.7.1'
31 31
32 # high level interface 32 # high level interface
33 from jinja2.environment import Environment, Template 33 from jinja2.environment import Environment, Template
34 34
35 # loaders 35 # loaders
36 from jinja2.loaders import BaseLoader, FileSystemLoader, PackageLoader, \ 36 from jinja2.loaders import BaseLoader, FileSystemLoader, PackageLoader, \
37 DictLoader, FunctionLoader, PrefixLoader, ChoiceLoader, \ 37 DictLoader, FunctionLoader, PrefixLoader, ChoiceLoader, \
38 ModuleLoader 38 ModuleLoader
39 39
40 # bytecode caches 40 # bytecode caches
(...skipping 19 matching lines...) Expand all
60 'Environment', 'Template', 'BaseLoader', 'FileSystemLoader', 60 'Environment', 'Template', 'BaseLoader', 'FileSystemLoader',
61 'PackageLoader', 'DictLoader', 'FunctionLoader', 'PrefixLoader', 61 'PackageLoader', 'DictLoader', 'FunctionLoader', 'PrefixLoader',
62 'ChoiceLoader', 'BytecodeCache', 'FileSystemBytecodeCache', 62 'ChoiceLoader', 'BytecodeCache', 'FileSystemBytecodeCache',
63 'MemcachedBytecodeCache', 'Undefined', 'DebugUndefined', 63 'MemcachedBytecodeCache', 'Undefined', 'DebugUndefined',
64 'StrictUndefined', 'TemplateError', 'UndefinedError', 'TemplateNotFound', 64 'StrictUndefined', 'TemplateError', 'UndefinedError', 'TemplateNotFound',
65 'TemplatesNotFound', 'TemplateSyntaxError', 'TemplateAssertionError', 65 'TemplatesNotFound', 'TemplateSyntaxError', 'TemplateAssertionError',
66 'ModuleLoader', 'environmentfilter', 'contextfilter', 'Markup', 'escape', 66 'ModuleLoader', 'environmentfilter', 'contextfilter', 'Markup', 'escape',
67 'environmentfunction', 'contextfunction', 'clear_caches', 'is_undefined', 67 'environmentfunction', 'contextfunction', 'clear_caches', 'is_undefined',
68 'evalcontextfilter', 'evalcontextfunction' 68 'evalcontextfilter', 'evalcontextfunction'
69 ] 69 ]
OLDNEW
« no previous file with comments | « third_party/jinja2/README.chromium ('k') | third_party/jinja2/_compat.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698