Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | unify/rename filter and function decorators | David Lord | 2021-04-10 | 1 | -6/+6 |
| | | | | Use pass_context instead of contextfilter and contextfunction, etc. | ||||
* | Undefined.__contains__ raises UndefinedError | David Parker | 2021-04-05 | 1 | -0/+1 |
| | |||||
* | Setup mypy | Teymour Aldridge | 2020-07-28 | 1 | -1/+1 |
| | | | | | * Add missing type hints (these are intended as an initial set of type hints, to be added upon and improved later) * Setup MyPy to run as a Github Action | ||||
* | Merge branch '2.11.x' | David Lord | 2020-03-30 | 1 | -0/+15 |
|\ | |||||
| * | AttributeError in undefined message doesn't cause RuntimeError | David Lord | 2020-03-27 | 1 | -0/+15 |
| | | |||||
* | | Merge branch '2.11.x' | David Lord | 2020-02-05 | 1 | -10/+0 |
|\ \ | |/ | |||||
| * | remove custom pytest marks | David Lord | 2020-02-05 | 1 | -10/+0 |
| | | |||||
* | | apply pyupgrade and f-strings | David Lord | 2020-02-05 | 1 | -29/+26 |
| | | |||||
* | | remove more compat code | David Lord | 2020-02-05 | 1 | -1/+0 |
|/ | |||||
* | Revert "rename imports to jinja" | David Lord | 2020-01-26 | 1 | -20/+20 |
| | | | | This reverts commit 1167525b73863119f8bbec03ddb9d35eacff4bef. | ||||
* | rename imports to jinja | David Lord | 2020-01-10 | 1 | -20/+20 |
| | |||||
* | simplify module docstringsstyle | David Lord | 2020-01-10 | 1 | -9/+0 |
| | |||||
* | apply flake8 | David Lord | 2020-01-10 | 1 | -15/+4 |
| | |||||
* | apply black | David Lord | 2020-01-10 | 1 | -131/+135 |
| | |||||
* | apply reorder-python-imports | David Lord | 2020-01-10 | 1 | -7/+15 |
| | |||||
* | handle Undefined in get/select_template | David Lord | 2019-12-05 | 1 | -0/+25 |
| | |||||
* | refactor visit_Output | David Lord | 2019-11-20 | 1 | -15/+15 |
| | | | | | | | | | | | | * `finalize` is generated once and cached for all nodes. * Extract common behavior for native env. Removed the compiler behavior where groups of nodes would generate a format string. Instead, individual nodes are always yielded. This made rendering 30% faster in the examples, and simplifies the code. It also removes the issue where Python would report either the first or last line of the multi-line format expression, messing up the traceback line number mapping. | ||||
* | Don't make cond_expr_undefined configurable | Adrian Moennich | 2019-10-13 | 1 | -9/+1 |
| | |||||
* | Use separate undefined object for CondExpr | Adrian Moennich | 2019-10-13 | 1 | -0/+9 |
| | |||||
* | 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. |