Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | don't finalize TemplateData nodesno-finalize-template-data | David Lord | 2019-10-12 | 1 | -10/+47 |
| | | | | | Finalize only applies to the output of expressions (constant or not). Add tests for context, eval, and env finalize functions. | ||||
* | Replaced try...catch within tests with pytest.raisespytest-cleanup | Kevin Brown | 2019-10-10 | 1 | -10/+2 |
| | | | | | | This still leaves one in test_debug which relies on reading out the traceback and cannot easily be replaced by pytest.raises like the others. | ||||
* | Eliminate dead code by using pytests.raises instead of try/except/else | btharper | 2019-10-06 | 1 | -5/+1 |
| | |||||
* | Add tests for Undefined classes | EtiennePelletier | 2019-10-04 | 1 | -0/+15 |
| | |||||
* | Merge branch '2.10.x' | David Lord | 2019-07-26 | 1 | -0/+9 |
|\ | |||||
| * | sandbox uses xrange on Python 2 | Prakhar Bhandari | 2019-07-22 | 1 | -1/+10 |
| | | |||||
* | | exclude globals from find_undeclared_variables | Brendan | 2019-07-22 | 1 | -0/+4 |
| | | |||||
* | | Add ChainableUndefined allowing getattr & getitem (#997) | Étienne Pelletier | 2019-05-08 | 1 | -2/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ChainableUndefined allowing getattr & getitem Allows using default values with chains of items or attributes that may contain undefined values without raising a jinja2.exceptions.UndefinedError. >>> import jinja2 >>> env = jinja2.Environment(undefined=jinja2.ChainableUndefined) >>> env.from_string("{{ foo.bar['baz'] | default('val') }}").render() 'val' * Remove class decorator from ChainableUndefined | ||||
* | | Trim trailing white space throughout the project | Jon Dufresne | 2018-08-29 | 1 | -1/+1 |
|/ | | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines. | ||||
* | Bump up the copyright to 2017 | Armin Ronacher | 2017-01-07 | 1 | -1/+1 |
| | |||||
* | Cleaned up shitty syntax in testsuite | Armin Ronacher | 2017-01-06 | 1 | -5/+5 |
| | |||||
* | Fixed various breakage from the new id tracking | Armin Ronacher | 2017-01-03 | 1 | -1/+1 |
| | |||||
* | Merge pull request #530 from nick-garcia/master | Armin Ronacher | 2017-01-03 | 1 | -0/+2 |
|\ | | | | | Subtraction from Undefined does not raise UndefinedError | ||||
| * | Setting __sub__ equal to _fail_with_undefined_error so subtractions with | Nick Garcia | 2016-01-07 | 1 | -0/+2 |
| | | | | | | | | undefined variables will fail properly like other arithemtic operations. | ||||
* | | Give Cycler a next() method so that it works in python2 and 3 | Matt Haggard | 2015-12-29 | 1 | -0/+11 |
|/ | |||||
* | Let the Environment override the Context | ThiefMaster | 2015-04-06 | 1 | -0/+13 |
| | | | | closes #404 | ||||
* | Let the Environment override the CodeGenerator | ThiefMaster | 2015-04-06 | 1 | -0/+22 |
| | | | | see #404 | ||||
* | Rename testsuite to tests and suggestions | Kartheek Lenkala | 2015-03-22 | 1 | -0/+292 |
Remove py.test from setup.py install_requires Rename testsuite folder to tests. |