Skip to content
Myr

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

22 files+22 added−22 removed

modified:jinja2/__init__.py+1 added-1 removed
21 unmodified lines
22 </ul>23 {% endblock %}242526 :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'30try:
39 unmodified lines
modified:jinja2/_ipysupport.py+1 added-1 removed
4 unmodified lines
56 IronPython support library. This library exports functionality from7 the CLR to Python that is normally available in the standard library.89 :copyright: (c) 2009 by the Jinja Team.9 :copyright: (c) 2010 by the Jinja Team.10 :license: BSD.11"""12from System import DateTime13from System.IO import Path, File, FileInfo
27 unmodified lines
modified:jinja2/bccache.py+1 added-1 removed
9 unmodified lines
1011 Situations where this is useful are often forking web applications that12 are initialized on the first request.1314 :copyright: (c) 2009 by the Jinja Team.14 :copyright: (c) 2010 by the Jinja Team.15 :license: BSD.16"""17from os import path, listdir18import marshal
262 unmodified lines
modified:jinja2/compiler.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~56 Compiles nodes into python code.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD.10"""11from cStringIO import StringIO12from itertools import chain
1537 unmodified lines
modified:jinja2/constants.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~56 Various constants.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""1112
278 unmodified lines
modified:jinja2/debug.py+1 added-1 removed
5 unmodified lines
6 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.910 :copyright: (c) 2009 by the Jinja Team.10 :copyright: (c) 2010 by the Jinja Team.11 :license: BSD, see LICENSE for more details.12"""13import sys14import traceback
294 unmodified lines
modified:jinja2/defaults.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~56 Jinja default filters and tags.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner12
34 unmodified lines
modified:jinja2/environment.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~~56 Provides a class that holds runtime and parsing time options.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import sys12from jinja2 import nodes
914 unmodified lines
modified:jinja2/exceptions.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~~~~56 Jinja exceptions.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""1112
123 unmodified lines
modified:jinja2/ext.py+1 added-1 removed
5 unmodified lines
6 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.910 :copyright: (c) 2009 by the Jinja Team.10 :copyright: (c) 2010 by the Jinja Team.11 :license: BSD.12"""13from collections import deque14from jinja2 import nodes
443 unmodified lines
modified:jinja2/filters.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Bundled jinja filters.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import re12import math
703 unmodified lines
modified:jinja2/lexer.py+1 added-1 removed
9 unmodified lines
10 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.1314 :copyright: (c) 2009 by the Jinja Team.14 :copyright: (c) 2010 by the Jinja Team.15 :license: BSD, see LICENSE for more details.16"""17import re18from operator import itemgetter
625 unmodified lines
modified:jinja2/loaders.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Jinja loader classes.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from os import path12try:
298 unmodified lines
modified:jinja2/meta.py+1 added-1 removed
4 unmodified lines
56 This module implements various functions that exposes information about7 templates that might be interesting for various kinds of applications.89 :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"""12from jinja2 import nodes13from jinja2.compiler import CodeGenerator
89 unmodified lines
modified:jinja2/nodes.py+1 added-1 removed
7 unmodified lines
8 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.1112 :copyright: (c) 2009 by the Jinja Team.12 :copyright: (c) 2010 by the Jinja Team.13 :license: BSD, see LICENSE for more details.14"""15import operator16from itertools import chain, izip
775 unmodified lines
modified:jinja2/optimizer.py+1 added-1 removed
11 unmodified lines
12 have a different scoping.1314 The solution would be a second syntax tree that has the scoping rules stored.1516 :copyright: (c) 2009 by the Jinja Team.16 :copyright: (c) 2010 by the Jinja Team.17 :license: BSD.18"""19from jinja2 import nodes20from jinja2.visitor import NodeTransformer
48 unmodified lines
modified:jinja2/parser.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~56 Implements the template parser.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11from jinja2 import nodes12from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError
772 unmodified lines
modified:jinja2/runtime.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 Runtime helpers.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD.10"""11import sys12from itertools import chain, imap
514 unmodified lines
modified:jinja2/sandbox.py+1 added-1 removed
7 unmodified lines
8 default behavior is easier to use.910 The behavior can be changed by subclassing the environment.1112 :copyright: (c) 2009 by the Jinja Team.12 :copyright: (c) 2010 by the Jinja Team.13 :license: BSD.14"""15import operator16from jinja2.runtime import Undefined
247 unmodified lines
modified:jinja2/tests.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Jinja test functions. Used with the "is" operator.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import re12from jinja2.runtime import Undefined
131 unmodified lines
modified:jinja2/utils.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~56 Utility functions.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10"""11import re12import sys
772 unmodified lines
modified:jinja2/visitor.py+1 added-1 removed
3 unmodified lines
4 ~~~~~~~~~~~~~~56 This module implements a visitor for the nodes.78 :copyright: (c) 2009 by the Jinja Team.8 :copyright: (c) 2010 by the Jinja Team.9 :license: BSD.10"""11from jinja2.nodes import Node12
75 unmodified lines