It's a new year
Before adoption: this commit came in with the history the project adopted, so no landing records it.
--HG-- branch : trunk
authored by Armin Ronacher · committed by Armin Ronacher · parent ef18944 · Browse files · 22 files·+22 added−22 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
22 files+22 added−22 removed
- other:+22 added−22 removed
Provenance
- Commit
55494e4- Tree
dfb91eb- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
ef18944
22 files changed+22 added−22 removed
modified:jinja2/__init__.py+1 added-1 removed
21 unmodified lines22 </ul>23 {% endblock %}24 25 26- :copyright: (c) 2009 by the Jinja Team.26+ :copyright: (c) 2010 by the Jinja Team.27 :license: BSD, see LICENSE for more details.28 """29 __docformat__ = 'restructuredtext en'30 try:39 unmodified linesmodified:jinja2/_ipysupport.py+1 added-1 removed
4 unmodified lines5 6 IronPython support library. This library exports functionality from7 the CLR to Python that is normally available in the standard library.8 9- :copyright: (c) 2009 by the Jinja Team.9+ :copyright: (c) 2010 by the Jinja Team.10 :license: BSD.11 """12 from System import DateTime13 from System.IO import Path, File, FileInfo27 unmodified linesmodified:jinja2/bccache.py+1 added-1 removed
9 unmodified lines10 11 Situations where this is useful are often forking web applications that12 are initialized on the first request.13 14- :copyright: (c) 2009 by the Jinja Team.14+ :copyright: (c) 2010 by the Jinja Team.15 :license: BSD.16 """17 from os import path, listdir18 import marshal262 unmodified linesmodified:jinja2/compiler.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~5 6 Compiles nodes into python code.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD.10 """11 from cStringIO import StringIO12 from itertools import chain1537 unmodified linesmodified:jinja2/constants.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~5 6 Various constants.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 12 278 unmodified linesmodified:jinja2/debug.py+1 added-1 removed
5 unmodified lines6 Implements the debug interface for Jinja. This module does some pretty7 ugly stuff with the Python traceback system in order to achieve tracebacks8 with correct line numbers, locals and contents.9 10- :copyright: (c) 2009 by the Jinja Team.10+ :copyright: (c) 2010 by the Jinja Team.11 :license: BSD, see LICENSE for more details.12 """13 import sys14 import traceback294 unmodified linesmodified:jinja2/defaults.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~5 6 Jinja default filters and tags.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner12 34 unmodified linesmodified:jinja2/environment.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~5 6 Provides a class that holds runtime and parsing time options.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 import sys12 from jinja2 import nodes914 unmodified linesmodified:jinja2/exceptions.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~5 6 Jinja exceptions.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 12 123 unmodified linesmodified:jinja2/ext.py+1 added-1 removed
5 unmodified lines6 Jinja extensions allow to add custom tags similar to the way django custom7 tags work. By default two example extensions exist: an i18n and a cache8 extension.9 10- :copyright: (c) 2009 by the Jinja Team.10+ :copyright: (c) 2010 by the Jinja Team.11 :license: BSD.12 """13 from collections import deque14 from jinja2 import nodes443 unmodified linesmodified:jinja2/filters.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Bundled jinja filters.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 import re12 import math703 unmodified linesmodified:jinja2/lexer.py+1 added-1 removed
9 unmodified lines10 On the one hand it filters out invalid operators like the bitshift11 operators we don't allow in templates. On the other hand it separates12 template code and python code in expressions.13 14- :copyright: (c) 2009 by the Jinja Team.14+ :copyright: (c) 2010 by the Jinja Team.15 :license: BSD, see LICENSE for more details.16 """17 import re18 from operator import itemgetter625 unmodified linesmodified:jinja2/loaders.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Jinja loader classes.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 from os import path12 try:298 unmodified linesmodified:jinja2/meta.py+1 added-1 removed
4 unmodified lines5 6 This module implements various functions that exposes information about7 templates that might be interesting for various kinds of applications.8 9- :copyright: (c) 2009 by the Jinja Team, see AUTHORS for more details.9+ :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.10 :license: BSD, see LICENSE for more details.11 """12 from jinja2 import nodes13 from jinja2.compiler import CodeGenerator89 unmodified linesmodified:jinja2/nodes.py+1 added-1 removed
7 unmodified lines8 It also provides some node tree helper functions like `in_lineno` and9 `get_nodes` used by the parser and translator in order to normalize10 python and jinja nodes.11 12- :copyright: (c) 2009 by the Jinja Team.12+ :copyright: (c) 2010 by the Jinja Team.13 :license: BSD, see LICENSE for more details.14 """15 import operator16 from itertools import chain, izip775 unmodified linesmodified:jinja2/optimizer.py+1 added-1 removed
11 unmodified lines12 have a different scoping.13 14 The solution would be a second syntax tree that has the scoping rules stored.15 16- :copyright: (c) 2009 by the Jinja Team.16+ :copyright: (c) 2010 by the Jinja Team.17 :license: BSD.18 """19 from jinja2 import nodes20 from jinja2.visitor import NodeTransformer48 unmodified linesmodified:jinja2/parser.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~5 6 Implements the template parser.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 from jinja2 import nodes12 from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError772 unmodified linesmodified:jinja2/runtime.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Runtime helpers.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD.10 """11 import sys12 from itertools import chain, imap514 unmodified linesmodified:jinja2/sandbox.py+1 added-1 removed
7 unmodified lines8 default behavior is easier to use.9 10 The behavior can be changed by subclassing the environment.11 12- :copyright: (c) 2009 by the Jinja Team.12+ :copyright: (c) 2010 by the Jinja Team.13 :license: BSD.14 """15 import operator16 from jinja2.runtime import Undefined247 unmodified linesmodified:jinja2/tests.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Jinja test functions. Used with the "is" operator.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 import re12 from jinja2.runtime import Undefined131 unmodified linesmodified:jinja2/utils.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Utility functions.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 import re12 import sys772 unmodified linesmodified:jinja2/visitor.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 This module implements a visitor for the nodes.7 8- :copyright: (c) 2009 by the Jinja Team.8+ :copyright: (c) 2010 by the Jinja Team.9 :license: BSD.10 """11 from jinja2.nodes import Node12 75 unmodified lines