summaryrefslogtreecommitdiff
path: root/jinja2/parser.py
Commit message (Collapse)AuthorAgeFilesLines
* fixed an operator precedence error introduced in 2.5.2.2.5.3Armin Ronacher2010-10-171-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.1Armin Ronacher2010-08-171-12/+12
| | | | | --HG-- branch : trunk
* Added extension ordering, this fixes #376.Armin Ronacher2010-04-121-1/+1
| | | | | --HG-- branch : trunk
* This fixes #368.Armin Ronacher2010-02-111-9/+14
| | | | | --HG-- branch : trunk
* Further error message improvement, this time for #341.Armin Ronacher2010-02-071-0/+9
| | | | | --HG-- branch : trunk
* implicit tuple expressions can no longer be totally empty.Armin Ronacher2010-02-061-4/+19
| | | | | | | | This change makes ``{% if %}...{% endif %}`` a syntax error now. (#364) --HG-- branch : trunk
* greatly improved error message reporting. This fixes #339Armin Ronacher2010-02-061-36/+105
| | | | | | --HG-- branch : trunk extra : rebase_source : d8f677273490fa73d5603b68478fa3b54f60ccb9
* It's a new yearArmin Ronacher2010-01-221-1/+1
| | | | | --HG-- branch : trunk
* More Python 3 support.Armin Ronacher2009-08-051-47/+48
| | | | | --HG-- branch : trunk
* Added support for optional `scoped` modifier to blocks.Armin Ronacher2009-02-191-0/+1
| | | | | --HG-- branch : trunk
* Fixed a bug in the parser that made ``{{ foo[1, 2] }}`` impossible.Armin Ronacher2009-02-051-1/+1
| | | | | --HG-- branch : trunk
* Priority of `not` raised. It's now possible to write `not foo in bar`Armin Ronacher2009-02-041-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 Afshar2009-01-051-52/+52
| | | | | | | support jython --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-0/+6
| | | | | | | non existing templates. --HG-- branch : trunk
* Added support for `Environment.compile_expression`.Armin Ronacher2008-11-021-2/+3
| | | | | --HG-- branch : trunk
* Fixed a bug with the loop context of a for loop if the iterator passed has a ↵Armin Ronacher2008-07-041-2/+4
| | | | | | | volatile `__len__` like the listreverseiterator. `else` in inline if-expressions is optional now. --HG-- branch : trunk
* added support for implicit string literal concatenationArmin Ronacher2008-06-221-1/+9
| | | | | --HG-- branch : trunk
* added support for token stream filtering and preprocessing.Armin Ronacher2008-06-131-2/+1
| | | | | --HG-- branch : trunk
* Fixed a broken unittest and fixed a bug that required multiple tests to be ↵Armin Ronacher2008-06-121-1/+5
| | | | | | | put into parentheses for chaning. --HG-- branch : trunk
* Improved attribute and item lookup by allowing template designers to express ↵Armin Ronacher2008-06-121-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 Ronacher2008-05-281-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 updatesArmin Ronacher2008-05-261-2/+2
| | | | | --HG-- branch : trunk
* even more tests, fixed severe bug with autoescaping.Armin Ronacher2008-05-251-1/+2
| | | | | --HG-- branch : trunk
* all calls are proxied by context.call now so that we can inject environment ↵Armin Ronacher2008-05-251-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 exportedArmin Ronacher2008-05-231-2/+2
| | | | | --HG-- branch : trunk
* removed attribute local aliasing again because that implementation was brokenArmin Ronacher2008-05-161-2/+0
| | | | | --HG-- branch : trunk
* improved exception system. now both name (load name) and filename are passed.Armin Ronacher2008-05-161-24/+24
| | | | | --HG-- branch : trunk
* simplified from importsArmin Ronacher2008-05-151-1/+1
| | | | | --HG-- branch : trunk
* fixed bug with parameter parsingArmin Ronacher2008-05-151-0/+1
| | | | | --HG-- branch : trunk
* switched back to explicit set for assignments. {% foo = 42 %} becomes {% ↵Armin Ronacher2008-05-131-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 Ronacher2008-05-111-41/+33
| | | | | | | interface a bit --HG-- branch : trunk
* added support for dotted names in tests and filtersArmin Ronacher2008-05-101-2/+8
| | | | | --HG-- branch : trunk
* added a function to parse assign targes and documented it for the extension ↵Armin Ronacher2008-05-101-51/+45
| | | | | | | interface --HG-- branch : trunk
* more updates on the extension APIArmin Ronacher2008-05-081-2/+9
| | | | | --HG-- branch : trunk
* First extension interface documentation and updates in that interfaceArmin Ronacher2008-05-081-25/+48
| | | | | --HG-- branch : trunk
* fixed a bug with filtered loopsArmin Ronacher2008-05-041-1/+1
| | | | | --HG-- branch : trunk
* updated filters: wordwraps uses the wordwrap module and urlize marks the ↵Armin Ronacher2008-05-031-3/+2
| | | | | | | result as HTML now if in autoescape mode --HG-- branch : trunk
* added "with context" or "without context" import/include modifiersArmin Ronacher2008-05-021-7/+29
| | | | | --HG-- branch : trunk
* moved code from datastructure into lexer as the module only holds code for ↵Armin Ronacher2008-05-011-1/+0
| | | | | | | the lexer and is not that big. --HG-- branch : trunk
* Jinja doesn't have keywords any longer. The reason for this radical change ↵Armin Ronacher2008-05-011-53/+68
| | | | | | | is that the previous keywords where incompatible with the python keywords which made it impossible to name a variable "filter" or call a function with such a keyword parameter. --HG-- branch : trunk
* fixed some NameErrorsBenjamin Wiegand2008-04-281-1/+1
| | | | | --HG-- branch : trunk
* more docs and fixed bug in parser that assigned lineno for ExprStmt wrongArmin Ronacher2008-04-281-1/+1
| | | | | --HG-- branch : trunk
* all unittests pass, the special and dependency lookups have their own ↵Armin Ronacher2008-04-271-0/+3
| | | | | | | visitors now, with `self` one can get a reference to the current template and render blocks multiple times. --HG-- branch : trunk
* added spitfire to bench and did some more refactoringArmin Ronacher2008-04-261-2/+1
| | | | | --HG-- branch : trunk
* there is now a workaround in the compiler that makes sure it's possible to ↵Armin Ronacher2008-04-261-2/+11
| | | | | | | call things with python keywords. {{ foo(class=42) }} works again --HG-- branch : trunk
* revamped jinja2 import system. the behavior is less confusing now, but it's ↵Armin Ronacher2008-04-251-18/+44
| | | | | | | not backwards compatible. I like it though ;) --HG-- branch : trunk
* moved trans extension from jinja2.i18n to jinja2.ext and fixed some more ↵Armin Ronacher2008-04-251-9/+6
| | | | | | | unittests --HG-- branch : trunk
* fixed more unittestsArmin Ronacher2008-04-221-4/+4
| | | | | --HG-- branch : trunk
* fixed setup.py, a type and removed the possibility to use multiple ↵Armin Ronacher2008-04-211-28/+6
| | | | | | | statements per block. The latter makes it easier to write custom tags --HG-- branch : trunk