summaryrefslogtreecommitdiff
path: root/jinja2/compiler.py
Commit message (Collapse)AuthorAgeFilesLines
...
| * | | Don't assign the range type each time.Cory Benfield2013-05-181-4/+6
| | | |
* | | | Cleanup up some importsArmin Ronacher2013-05-181-2/+1
| |_|/ |/| |
* | | Fixed a check that broke pypyArmin Ronacher2013-05-181-1/+5
|/ /
* | python 3 port: manual fixes, remove 2to3 from setup.py, remove fixersThomas Waldmann2013-05-181-9/+11
| |
* | python 3 port: automated changes by a slightly modified python-modernizeThomas Waldmann2013-05-171-8/+11
|/ | | | (replacing unicode with six.text_type, but not replacing u"" by six.u(""))
* Fixed a test caseArmin Ronacher2011-03-131-9/+6
|
* Grammar.Armin Ronacher2011-01-151-1/+1
|
* groupby now supports attributes of attributes. This fixes #10Armin Ronacher2010-12-211-1/+1
|
* Implemented operator interceptingArmin Ronacher2010-11-291-11/+23
|
* Changed naked except statements to catch only subclasses of Exception.Ian Lewis2010-11-071-1/+1
| | | | | | | | | | | | | | Naked except statements catch subclasses of BaseException which can occur anywhere (i.e. KeyboardInterrupt). Unexpected issues can occur when the exception happens during the loading of a module. The python interpreter doesn't know about a module's failed load and does not remove it from sys.modules. This is particularly a problem on AppEngine where python will think the module is loaded but in fact the module load has failed. See: http://code.google.com/p/googleappengine/issues/detail?id=1409 Signed-off-by: Armin Ronacher <armin.ronacher@active-4.com>
* Fixed the profile.py file and removed a useless newline callArmin Ronacher2010-06-061-2/+0
| | | | | --HG-- branch : trunk
* it's now possible to register extensions after an environmentArmin Ronacher2010-05-291-1/+5
| | | | | | | was created. --HG-- branch : trunk
* Tip is now 2.5. Started work on newstyle gettext translations.Armin Ronacher2010-05-291-0/+5
| | | | | --HG-- branch : trunk
* Fixed a scoping bug that caused the immutable scoping rule to be ignoredArmin Ronacher2010-04-051-3/+3
| | | | | | | in a few edge cases. This clauses #376. --HG-- branch : trunk
* autoescape no longer is a plain boolean value but can also be a functionArmin Ronacher2010-04-051-1/+1
| | | | | | | | to enable or disable autoescaping for certain filenames (or file extensions for that matter) --HG-- branch : trunk
* Fixed a testcase for Python 2.4Armin Ronacher2010-03-151-6/+10
| | | | | --HG-- branch : trunk
* Added another testcase and fixed a bug with the volatile scoping.Armin Ronacher2010-03-151-1/+2
| | | | | --HG-- branch : trunk
* Biggest change to Jinja since the 1.x migration: added evaluation contextsArmin Ronacher2010-03-141-16/+67
| | | | | | | | | which make it possible to keep the ahead of time optimizations and provide dynamic activation and deactivation of autoescaping and other context specific features. --HG-- branch : trunk
* added a :class:`ModuleLoader` that can load templates fromArmin Ronacher2010-03-121-6/+13
| | | | | | | | | | precompiled sources. The environment now features a method to compile the templates from a configured loader into a zip file or folder. --HG-- branch : trunk extra : rebase_source : 4824f663e4ff58ca3d2176c65fc1b7494e1f0c43
* Fixed some tests for python 2.4. Disabled a test for 2.4 that does not work ↵Armin Ronacher2010-02-171-2/+15
| | | | | | | because of a python limitation. --HG-- branch : trunk
* Down to 7 failures for Python 3. We're onto something.Armin Ronacher2010-02-101-1/+9
| | | | | --HG-- branch : trunk
* Started working on unittest powered testsuite.Armin Ronacher2010-02-091-1/+1
| | | | | --HG-- branch : trunk
* It's a new yearArmin Ronacher2010-01-221-1/+1
| | | | | --HG-- branch : trunk
* More correct fix for 380. The only thing that is part of the outer scopeArmin Ronacher2010-01-141-2/+1
| | | | | | | | is the name of the thing to call. Though because it will never be able to track store nodes, the one before should not do harm either. --HG-- branch : trunk
* fixed a problem with having call blocks in outer scopes thatArmin Ronacher2010-01-141-1/+1
| | | | | | | | have an argument that is also used as local variable in an inner frame [#360]. --HG-- branch : trunk
* include tags are now able to select between multiple templatesArmin Ronacher2010-01-141-1/+11
| | | | | | | | and take the first that exists, if a list of templates is given. --HG-- branch : trunk
* Reverted [73b04625ab54]. The old behavior is the new behavior, the otherArmin Ronacher2009-10-261-11/+2
| | | | | | | is not consistenly implementable. --HG-- branch : trunk
* Shortcut for the if inner visit for empty branches.Armin Ronacher2009-10-251-0/+2
| | | | | --HG-- branch : trunk
* Fixed a scoping bug that was introduced in the development version and wasArmin Ronacher2009-10-251-17/+26
| | | | | | | | triggered by multiple layers of local variables not tracked properly in if statements. --HG-- branch : trunk
* added a deprecation warning for a variable assignment, scope bugArmin Ronacher2009-09-181-2/+9
| | | | | | | | | | that exists since 2.0, code could depend on. See :ref:`jinja-scoping-bug` for more information on this problem. Tip is 2.3 as this will be the next release (will happen soon!) --HG-- branch : trunk
* fixes issue with code generator that causes unbound variablesArmin Ronacher2009-09-171-0/+24
| | | | | | | to be generated if set was used in if-blocks. --HG-- branch : trunk
* Tiny improvement for the loop hack. Implemented it in a way that theArmin Ronacher2009-09-131-1/+1
| | | | | | | frame is not modified in the macro body generator. --HG-- branch : trunk
* Refactoring in the way the parse function is invoked.Armin Ronacher2009-09-131-1/+1
| | | | | --HG-- branch : trunk
* Added ugly workaround for a loop bug.Armin Ronacher2009-09-121-0/+9
| | | | | --HG-- branch : trunk
* More Python 3 support.Armin Ronacher2009-08-051-3/+3
| | | | | --HG-- branch : trunk
* Added testcase for a bugArmin Ronacher2009-03-181-1/+3
| | | | | --HG-- branch : trunk
* Added support for optional `scoped` modifier to blocks.Armin Ronacher2009-02-191-2/+6
| | | | | --HG-- branch : trunk
* Fixed a bug that caused internal errors if names where used as iterationArmin Ronacher2009-02-111-18/+36
| | | | | | | | variable and regular variable *after* the loop if that variable was unused *before* the loop. (#331) --HG-- branch : trunk
* Made it possible to refer to names from outer scopes in included templatesArmin Ronacher2009-02-081-0/+14
| | | | | | | that were unused in the callers frame (#327). --HG-- branch : trunk
* Fixed a bug that caused syntax errors when defining macros or using theArmin Ronacher2009-02-041-1/+4
| | | | | | | | | `{% call %}` tag inside loops. This fixes #323. --HG-- branch : trunk
* Copyright switch to "The Jinja Team".Armin Ronacher2009-01-041-1/+1
| | | | | --HG-- branch : trunk
* Include statements can now be marked with ``ignore missing`` to skipArmin Ronacher2008-12-271-7/+20
| | | | | | | non existing templates. --HG-- branch : trunk
* Fixed a translation error caused by looping over empty recursive loops.Armin Ronacher2008-12-251-2/+3
| | | | | --HG-- branch : trunk
* Fixed a macro scoping bug discovered by ckknight introduced in one of the ↵Armin Ronacher2008-10-301-0/+2
| | | | | | | earlier changes for the 2.1 release. --HG-- branch : trunk
* imports and includes "with context" are passed the full context now, not ↵Armin Ronacher2008-10-041-9/+25
| | | | | | | only the initial one. --HG-- branch : trunk
* The hopefully final fix for the bug apollo13 spotted earlier.Armin Ronacher2008-09-231-11/+9
| | | | | --HG-- branch : trunk
* Fixed a bug with the handling of empty statements in macros (it also fixes a ↵Armin Ronacher2008-09-171-7/+15
| | | | | | | bug introduced in one of the previous changesets) --HG-- branch : trunk
* Fixed a confusing edge case (thanks apollo13)Armin Ronacher2008-09-151-3/+3
| | | | | --HG-- branch : trunk
* Fixed a bug in the subscript operation.Armin Ronacher2008-09-121-5/+2
| | | | | --HG-- branch : trunk
* Fixed a bug in the compiler that caused problems with loop not being ↵Armin Ronacher2008-08-141-1/+2
| | | | | | | referenced in an outer scoped. (Introduced in the last checkin) --HG-- branch : trunk