Copyright switch to "The Jinja Team".
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 37f58ce · Browse files · 51 files·+75 added−67 removed
This commit
State
Before adoption: this commit came in with the history the project adopted, so no landing records it.
Diff stats
51 files+75 added−67 removed
- tests:+21 added−21 removed
- other:+54 added−46 removed
Provenance
- Commit
62ccd1b- Tree
c9e3597- Author
Armin Ronacher <armin.ronacher@active-4.com>- Committer
Armin Ronacher <armin.ronacher@active-4.com>- Parent
37f58ce
51 files changed+75 added−67 removed
modified:examples/rwbench/rwbench.py+1 added-1 removed
5 unmodified lines6 A more real-world benchmark of Jinja2. Like the other benchmark in the7 Jinja2 repository this has no real-world usefulnes (despite the name).8 Just go away and ignore it. NOW!9 10- :copyright: Copyright 2008 by Armin Ronacher.10+ :copyright: (c) 2009 by the Jinja Team.11 :license: BSD.12 """13 import sys14 from os.path import join, dirname, abspath85 unmodified linesmodified:ext/django2jinja/django2jinja.py+1 added-1 removed
63 unmodified lines64 writer = Writer(var_re=var_re)65 66 For details about the writing process have a look at the module code.67 68- :copyright: Copyright 2008 by Armin Ronacher.68+ :copyright: (c) 2009 by the Jinja Team.69 :license: BSD.70 """71 import re72 import os693 unmodified linesmodified:ext/djangojinja2.py+1 added-1 removed
13 unmodified lines14 `JINJA2_EXTENSIONS` List of Jinja2 extensions to use15 `JINJA2_CACHE_SIZE` The size of the Jinja2 template cache.16 ======================= =============================================17 18- :copyright: Copyright 2008 by Armin Ronacher.18+ :copyright: (c) 2009 by the Jinja Team.19 :license: BSD.20 """21 from itertools import chain22 from django.conf import settings63 unmodified linesmodified:ext/inlinegettext.py+1 added-1 removed
4 unmodified lines5 6 An example extension for Jinja2 that supports inline gettext calls.7 Requires the i18n extension to be loaded.8 9- :copyright: Copyright 2008 by Armin Ronacher.9+ :copyright: (c) 2009 by the Jinja Team.10 :license: BSD.11 """12 import re13 from jinja2.ext import Extension65 unmodified linesmodified:ext/jinja.el+1 added
1 ;;; jinja.el --- Jinja mode highlighting2 ;;3 ;; Author: Georg Brandl4+;; Copyright: (c) 2009 by the Jinja Team5 ;; Last modified: 2008-05-22 23:04 by gbr6 ;;7 ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;8 ;;205 unmodified linesmodified:jinja2/__init__.py+1 added-1 removed
21 unmodified lines22 </ul>23 {% endblock %}24 25 26- :copyright: 2008 by Armin Ronacher, Christoph Hack.26+ :copyright: (c) 2009 by the Jinja Team.27 :license: BSD, see LICENSE for more details.28 """29 __docformat__ = 'restructuredtext en'30 try:38 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: Copyright 2008 by Armin Ronacher.9+ :copyright: (c) 2009 by the Jinja Team.10 :license: BSD.11 """12 from System import DateTime13 from System.IO import Path, File, FileInfo27 unmodified linesmodified:jinja2/_speedups.c+1 added-1 removed
6 unmodified lines7 * debug traceback. If the speedups module is not compiled a ctypes8 * implementation of `tb_set_next` and Python implementations of the other9 * functions are used.10 *11- * :copyright: 2008 by Armin Ronacher, Mickaël Guérin.11+ * :copyright: (c) 2009 by the Jinja Team.12 * :license: BSD.13 */14 15 #include <Python.h>206 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: Copyright 2008 by Armin Ronacher.14+ :copyright: (c) 2009 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: Copyright 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD.10 """11 from cStringIO import StringIO12 from itertools import chain1445 unmodified linesmodified:jinja2/constants.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~5 6 Various constants.7 8- :copyright: 2007 by Armin Ronacher.8+ :copyright: (c) 2009 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: Copyright 2008 by Armin Ronacher.10+ :copyright: (c) 2009 by the Jinja Team.11 :license: BSD.12 """13 import sys14 from jinja2.utils import CodeType159 unmodified linesmodified:jinja2/defaults.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~5 6 Jinja default filters and tags.7 8- :copyright: 2007-2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 from jinja2.utils import generate_lorem_ipsum, Cycler, Joiner12 27 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: 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 import sys12 from jinja2 import nodes836 unmodified linesmodified:jinja2/exceptions.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~5 6 Jinja exceptions.7 8- :copyright: 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 12 75 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: Copyright 2008 by Armin Ronacher.10+ :copyright: (c) 2009 by the Jinja Team.11 :license: BSD.12 """13 from collections import deque14 from jinja2 import nodes442 unmodified linesmodified:jinja2/filters.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Bundled jinja filters.7 8- :copyright: 2008 by Armin Ronacher, Christoph Hack.8+ :copyright: (c) 2009 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: 2007-2008 by Armin Ronacher.14+ :copyright: (c) 2009 by the Jinja Team.15 :license: BSD, see LICENSE for more details.16 """17 import re18 from operator import itemgetter543 unmodified linesmodified:jinja2/loaders.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Jinja loader classes.7 8- :copyright: 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 from os import path12 try:297 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: 2008 by Armin Ronacher.12+ :copyright: (c) 2009 by the Jinja Team.13 :license: BSD, see LICENSE for more details.14 """15 import operator16 from itertools import chain, izip768 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: Copyright 2008 by Christoph Hack, Armin Ronacher.16+ :copyright: (c) 2009 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: 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 from jinja2 import nodes12 from jinja2.exceptions import TemplateSyntaxError, TemplateAssertionError768 unmodified linesmodified:jinja2/runtime.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~5 6 Runtime helpers.7 8- :copyright: Copyright 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD.10 """11 import sys12 from itertools import chain, imap473 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: Copyright 2008 by Armin Ronacher.12+ :copyright: (c) 2009 by the Jinja Team.13 :license: BSD.14 """15 import operator16 from jinja2.runtime import Undefined234 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: 2007 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 import re12 from jinja2.runtime import Undefined124 unmodified linesmodified:jinja2/utils.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~5 6 Utility functions.7 8- :copyright: 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 import re12 import sys736 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: Copyright 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD.10 """11 from jinja2.nodes import Node12 75 unmodified linesmodified:tests/conftest.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~5 6 Configure py.test for support stuff.7 8- :copyright: 2007 by Armin Ronacher, Alexander Schremmer.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD, see LICENSE for more details.10 """11 12 import os137 unmodified linesmodified:tests/test_debug.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~~~5 6 Tests the traceback rewriter.7 8- :copyright: Copyright 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD.10 """11 from jinja2 import Environment12 from test_loaders import filesystem_loader25 unmodified linesmodified:tests/test_ext.py+1 added-1 removed
1 unmodified line2 """3 unit test for some extensions4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2008 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 import re10 from jinja2 import Environment, nodes127 unmodified linesmodified:tests/test_filters.py+1 added-1 removed
1 unmodified line2 """3 unit test for the filters4 ~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2008 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from jinja2 import Markup, Environment10 321 unmodified linesmodified:tests/test_forloop.py+1 added-1 removed
1 unmodified line2 """3 unit test for loop functions4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from py.test import raises10 from jinja2.exceptions import UndefinedError, TemplateSyntaxError152 unmodified linesmodified:tests/test_i18n.py+1 added-1 removed
1 unmodified line2 """3 unit test for the i18n functions4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from py.test import raises10 from jinja2 import Environment, DictLoader, contextfunction86 unmodified linesmodified:tests/test_ifcondition.py+1 added-1 removed
1 unmodified line2 """3 unit test for if conditions4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 10 SIMPLE = '''{% if true %}...{% endif %}'''36 unmodified linesmodified:tests/test_imports.py+1 added-1 removed
1 unmodified line2 """3 unit test for the imports and includes4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from py.test import raises10 from jinja2 import Environment, DictLoader72 unmodified linesmodified:tests/test_inheritance.py+1 added-1 removed
1 unmodified line2 """3 unit test for the inheritance4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from jinja2 import Environment, DictLoader10 from jinja2.exceptions import TemplateSyntaxError158 unmodified linesmodified:tests/test_lexer.py+1 added-1 removed
1 unmodified line2 """3 unit test for the lexer4 ~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 10 RAW = '{% raw %}foo{% endraw %}|{%raw%}{{ bar }}|{% baz %}{% endraw %}'59 unmodified linesmodified:tests/test_loaders.py+1 added-1 removed
1 unmodified line2 """3 unit test for the loaders4 ~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 10 from py.test import raises100 unmodified linesmodified:tests/test_lrucache.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~5 6 This module tests the LRU Cache7 8- :copyright: Copyright 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD.10 """11 import thread12 import time27 unmodified linesmodified:tests/test_macros.py+1 added-1 removed
1 unmodified line2 """3 unit test for the macros4 ~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 10 SIMPLE = '''\96 unmodified linesmodified:tests/test_old_bugs.py+1 added-1 removed
3 unmodified lines4 ~~~~~~~~~~~~~~~~~~5 6 Unittest that test situations caused by various older bugs.7 8- :copyright: Copyright 2008 by Armin Ronacher.8+ :copyright: (c) 2009 by the Jinja Team.9 :license: BSD.10 """11 from jinja2 import Environment, DictLoader12 23 unmodified linesmodified:tests/test_parser.py+1 added-1 removed
1 unmodified line2 """3 unit test for the parser4 ~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from jinja2 import Environment10 65 unmodified linesmodified:tests/test_security.py+1 added-1 removed
1 unmodified line2 """3 unit test for security features4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from py.test import raises10 from jinja2 import Environment128 unmodified linesmodified:tests/test_streaming.py+1 added-1 removed
1 unmodified line2 """3 unit test for streaming interface4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 10 41 unmodified linesmodified:tests/test_syntax.py+1 added-1 removed
1 unmodified line2 """3 unit test for expression syntax4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from py.test import raises10 from jinja2 import Environment, DictLoader181 unmodified linesmodified:tests/test_tests.py+1 added-1 removed
1 unmodified line2 """3 unit test for the test functions4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from jinja2 import Environment, Markup10 83 unmodified linesmodified:tests/test_undefined.py+1 added-1 removed
1 unmodified line2 """3 unit test for the undefined types4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2008 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 from py.test import raises10 from jinja2 import Template72 unmodified linesmodified:tests/test_various.py+1 added-1 removed
1 unmodified line2 """3 unit test for various things4 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~5 6- :copyright: 2007 by Armin Ronacher.6+ :copyright: (c) 2009 by the Jinja Team.7 :license: BSD, see LICENSE for more details.8 """9 import gc10 from py.test import raises100 unmodified linesmodified:AUTHORS+23 added-3 removed
1-Jinja is written and maintained by Armin Ronacher <armin.ronacher@active-4.com>.1+Jinja is written and maintained by the Jinja Team and various2+contributors:3 3-Other contributors (as mentionend in :copyright:s) are:4+Lead Developer:5 6 - Armin Ronacher <armin.ronacher@active-4.com>7+8+Developers:9+10+- Christoph Hack11 - Georg Brandl7-- Lawrence Journal-World.12+13+Contributors:14+15 - Bryan McLemore16 - Mickaël Guérin <kael@crocobox.org>17 - Cameron Knight18+- Lawrence Journal-World.19+- David Cramer20+21+Patches and suggestions:22+23+- Ronny Pfannschmidt24+- Axel Böhm25+- Alexey Melchakov26+- Bryan McLemore27+- Clovis Fabricio (nosklo)28+- Cameron Knight29+- Peter van Dijk (Habbie)30+- Stefan Ebnermodified:LICENSE+4 added-2 removed
1-Copyright (c) 2006-2008 by the respective authors (see AUTHORS file).2-All rights reserved.1+Copyright (c) 2006-2008 by the Jinja Team and contributors (see2+AUTHORS file).3 4+Some rights reserved.5+6 Redistribution and use in source and binary forms, with or without7 modification, are permitted provided that the following conditions are8 met:9 23 unmodified linesdeleted:THANKS-15 removed
1-Thanks To2-=========3-4-All the people listed here helped improving Jinja a lot, provided5-patches, helped working out solutions etc. Thanks to all of you!6-7-- Ronny Pfannschmidt8-- Axel Böhm9-- Alexey Melchakov10-- Stefan Ebner11-- Bryan McLemore12-- David Cramer13-- Clovis Fabricio (nosklo)14-- Cameron Knight15-- Peter van Dijk (Habbie)