Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Compile `elif` tag to `elif` instead of `else: if`2.9-maintenance | Adrian Moennich | 2017-08-22 | 1 | -7/+6 |
| | | | | | | | | This avoids deep nesting in case of many `{% elif .. %}` blocks (which would fail during execution) and also deep recursion (which may fail during compilation) fixes #759 | ||||
* | Implement with-tag with a custom node | Armin Ronacher | 2017-01-08 | 1 | -8/+11 |
| | |||||
* | Bump up the copyright to 2017 | Armin Ronacher | 2017-01-07 | 1 | -1/+1 |
| | |||||
* | Move the autoescape extension and with statement to be built-in | Armin Ronacher | 2017-01-07 | 1 | -1/+26 |
| | |||||
* | Change grouping behavior of tests. This fixes #401 | Armin Ronacher | 2017-01-07 | 1 | -1/+1 |
| | |||||
* | Fixed long standing wrong operator precedence | Armin Ronacher | 2016-12-28 | 1 | -52/+23 |
| | |||||
* | Disallow f(x, y=1, z) and similar nonsense | ThiefMaster | 2015-02-06 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | Python rejects such function definitions because it doesn't make much sense to have arguments with no default values after arguments with default values. Jinja did allow them, but handled them improperly (associating the default value with the wrong argument). Due to how broken the current behavior is, it makes more sense to reject templates containing such defintions instead of trying to handle them properly. Both cases are going to break existing code containing such definitions, but besides the fact that possibly no such code exists it is better to fail with a clear error than to silently change the values of arguments. This fixes #364 | ||||
* | Implemented a block set tag. | Armin Ronacher | 2014-06-07 | 1 | -3/+6 |
| | |||||
* | Flake 8 fixes | Armin Ronacher | 2014-06-06 | 1 | -9/+8 |
| | |||||
* | Since we no longer support 2.5 we can use the builtin next() function | Armin Ronacher | 2013-05-20 | 1 | -1/+1 |
| | |||||
* | six.advance_iterator -> next | Armin Ronacher | 2013-05-19 | 1 | -50/+49 |
| | |||||
* | Remove unused imports | Daniel Neuhäuser | 2013-05-18 | 1 | -1/+1 |
| | |||||
* | python 3 port: manual fixes, remove 2to3 from setup.py, remove fixers | Thomas Waldmann | 2013-05-18 | 1 | -50/+49 |
| | |||||
* | python 3 port: automated changes by a slightly modified python-modernize | Thomas Waldmann | 2013-05-17 | 1 | -0/+2 |
| | | | | (replacing unicode with six.text_type, but not replacing u"" by six.u("")) | ||||
* | unused code | Dmitry Jemerov | 2011-09-26 | 1 | -1/+0 |
| | |||||
* | couple of typos in comments | Dmitry Jemerov | 2011-09-26 | 1 | -1/+1 |
| | |||||
* | fixed an operator precedence error introduced in 2.5.2.2.5.3 | Armin Ronacher | 2010-10-17 | 1 | -4/+18 |
| | | | | | | Statements like "-foo.bar" had their implicit parentheses applied around the first part of the expression ("(-foo).bar") instead of the more correct "-(foo.bar)". | ||||
* | fixed an issue with unary operators having the wrong precendence.2.5.1 | Armin Ronacher | 2010-08-17 | 1 | -12/+12 |
| | | | | | --HG-- branch : trunk | ||||
* | Added extension ordering, this fixes #376. | Armin Ronacher | 2010-04-12 | 1 | -1/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | This fixes #368. | Armin Ronacher | 2010-02-11 | 1 | -9/+14 |
| | | | | | --HG-- branch : trunk | ||||
* | Further error message improvement, this time for #341. | Armin Ronacher | 2010-02-07 | 1 | -0/+9 |
| | | | | | --HG-- branch : trunk | ||||
* | implicit tuple expressions can no longer be totally empty. | Armin Ronacher | 2010-02-06 | 1 | -4/+19 |
| | | | | | | | | This change makes ``{% if %}...{% endif %}`` a syntax error now. (#364) --HG-- branch : trunk | ||||
* | greatly improved error message reporting. This fixes #339 | Armin Ronacher | 2010-02-06 | 1 | -36/+105 |
| | | | | | | --HG-- branch : trunk extra : rebase_source : d8f677273490fa73d5603b68478fa3b54f60ccb9 | ||||
* | It's a new year | Armin Ronacher | 2010-01-22 | 1 | -1/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | More Python 3 support. | Armin Ronacher | 2009-08-05 | 1 | -47/+48 |
| | | | | | --HG-- branch : trunk | ||||
* | Added support for optional `scoped` modifier to blocks. | Armin Ronacher | 2009-02-19 | 1 | -0/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | Fixed a bug in the parser that made ``{{ foo[1, 2] }}`` impossible. | Armin Ronacher | 2009-02-05 | 1 | -1/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | Priority of `not` raised. It's now possible to write `not foo in bar` | Armin Ronacher | 2009-02-04 | 1 | -6/+8 |
| | | | | | | | | as an alias to `foo not in bar` like in python. Previously the grammar required parentheses (`not (foo in bar)`) which was odd. --HG-- branch : trunk | ||||
* | This commit makes the parser and lexer use regular string comparison to ↵ | Ali Afshar | 2009-01-05 | 1 | -52/+52 |
| | | | | | | | support jython --HG-- branch : trunk | ||||
* | Copyright switch to "The Jinja Team". | Armin Ronacher | 2009-01-04 | 1 | -1/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | Include statements can now be marked with ``ignore missing`` to skip | Armin Ronacher | 2008-12-27 | 1 | -0/+6 |
| | | | | | | | non existing templates. --HG-- branch : trunk | ||||
* | Added support for `Environment.compile_expression`. | Armin Ronacher | 2008-11-02 | 1 | -2/+3 |
| | | | | | --HG-- branch : trunk | ||||
* | Fixed a bug with the loop context of a for loop if the iterator passed has a ↵ | Armin Ronacher | 2008-07-04 | 1 | -2/+4 |
| | | | | | | | volatile `__len__` like the listreverseiterator. `else` in inline if-expressions is optional now. --HG-- branch : trunk | ||||
* | added support for implicit string literal concatenation | Armin Ronacher | 2008-06-22 | 1 | -1/+9 |
| | | | | | --HG-- branch : trunk | ||||
* | added support for token stream filtering and preprocessing. | Armin Ronacher | 2008-06-13 | 1 | -2/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | Fixed a broken unittest and fixed a bug that required multiple tests to be ↵ | Armin Ronacher | 2008-06-12 | 1 | -1/+5 |
| | | | | | | | put into parentheses for chaning. --HG-- branch : trunk | ||||
* | Improved attribute and item lookup by allowing template designers to express ↵ | Armin Ronacher | 2008-06-12 | 1 | -6/+10 |
| | | | | | | | the priority. foo.bar checks foo.bar first and then foo['bar'] and the other way round. --HG-- branch : trunk | ||||
* | some more documentation updates and minor code cleanups. Additionally True ↵ | Armin Ronacher | 2008-05-28 | 1 | -3/+4 |
| | | | | | | | and true in the template are the same now, same for false/False and none/None. --HG-- branch : trunk | ||||
* | fixed a bug in error reporting and some small documentation updates | Armin Ronacher | 2008-05-26 | 1 | -2/+2 |
| | | | | | --HG-- branch : trunk | ||||
* | even more tests, fixed severe bug with autoescaping. | Armin Ronacher | 2008-05-25 | 1 | -1/+2 |
| | | | | | --HG-- branch : trunk | ||||
* | all calls are proxied by context.call now so that we can inject environment ↵ | Armin Ronacher | 2008-05-25 | 1 | -0/+1 |
| | | | | | | | and context as first arguments. This slows calls down a bit but is a lot more user friendly. Added first draft of FAQ --HG-- branch : trunk | ||||
* | variables starting with one or more underscores are not exported | Armin Ronacher | 2008-05-23 | 1 | -2/+2 |
| | | | | | --HG-- branch : trunk | ||||
* | removed attribute local aliasing again because that implementation was broken | Armin Ronacher | 2008-05-16 | 1 | -2/+0 |
| | | | | | --HG-- branch : trunk | ||||
* | improved exception system. now both name (load name) and filename are passed. | Armin Ronacher | 2008-05-16 | 1 | -24/+24 |
| | | | | | --HG-- branch : trunk | ||||
* | simplified from imports | Armin Ronacher | 2008-05-15 | 1 | -1/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | fixed bug with parameter parsing | Armin Ronacher | 2008-05-15 | 1 | -0/+1 |
| | | | | | --HG-- branch : trunk | ||||
* | switched back to explicit set for assignments. {% foo = 42 %} becomes {% ↵ | Armin Ronacher | 2008-05-13 | 1 | -31/+25 |
| | | | | | | | set foo = 42 %} and {% foo.something() }} becomes {{ void(foo.something() }} with this commit. --HG-- branch : trunk | ||||
* | added parsing code for "for item in seq recursive" and improved parser ↵ | Armin Ronacher | 2008-05-11 | 1 | -41/+33 |
| | | | | | | | interface a bit --HG-- branch : trunk | ||||
* | added support for dotted names in tests and filters | Armin Ronacher | 2008-05-10 | 1 | -2/+8 |
| | | | | | --HG-- branch : trunk | ||||
* | added a function to parse assign targes and documented it for the extension ↵ | Armin Ronacher | 2008-05-10 | 1 | -51/+45 |
| | | | | | | | interface --HG-- branch : trunk |