{% endblock %}
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
__docformat__ = 'restructuredtext en'
IronPython support library. This library exports functionality from
the CLR to Python that is normally available in the standard library.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
from System import DateTime
Situations where this is useful are often forking web applications that
are initialized on the first request.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
from os import path, listdir
Compiles nodes into python code.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
from cStringIO import StringIO
Various constants.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
ugly stuff with the Python traceback system in order to achieve tracebacks
with correct line numbers, locals and contents.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import sys
Jinja default filters and tags.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner
Provides a class that holds runtime and parsing time options.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import sys
Jinja exceptions.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
tags work. By default two example extensions exist: an i18n and a cache
extension.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
from collections import deque
Bundled jinja filters.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import re
operators we don't allow in templates. On the other hand it separates
template code and python code in expressions.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import re
Jinja loader classes.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
from os import path
This module implements various functions that exposes information about
templates that might be interesting for various kinds of applications.
- :copyright: (c) 2009 by the Jinja Team, see AUTHORS for more details.
+ :copyright: (c) 2010 by the Jinja Team, see AUTHORS for more details.
:license: BSD, see LICENSE for more details.
"""
from jinja2 import nodes
`get_nodes` used by the parser and translator in order to normalize
python and jinja nodes.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import operator
The solution would be a second syntax tree that has the scoping rules stored.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
from jinja2 import nodes
Implements the template parser.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
from jinja2 import nodes
Runtime helpers.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
import sys
The behavior can be changed by subclassing the environment.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
import operator
Jinja test functions. Used with the "is" operator.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import re
Utility functions.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD, see LICENSE for more details.
"""
import re
This module implements a visitor for the nodes.
- :copyright: (c) 2009 by the Jinja Team.
+ :copyright: (c) 2010 by the Jinja Team.
:license: BSD.
"""
from jinja2.nodes import Node