Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | async support doesn't require patchinginline-async | David Lord | 2021-04-10 | 3 | -10/+3 |
| | |||||
* | Markup and escape should be imported from markupsafe | David Lord | 2021-04-10 | 5 | -5/+5 |
| | |||||
* | unify/rename filter and function decorators | David Lord | 2021-04-10 | 4 | -26/+24 |
| | | | | Use pass_context instead of contextfilter and contextfunction, etc. | ||||
* | add default parameter to groupby | lisongmin | 2021-04-05 | 1 | -0/+15 |
| | |||||
* | Split lines in lexer only by \r\n, \r and \n | Matěj Volf | 2021-04-05 | 1 | -0/+7 |
| | | | | | | | | | | | | Python str.splitlines() splits by more characters[1], which, however, causes problems when keeping these special characters in processed templates is desirable, i.e. these bug reports: #769, #952, #1313. The keep_trailing_newlines logic is reworked because splitlines() removes them already (so they had to be added), while re.split doesn't so they have to be removed. [1] https://docs.python.org/3/library/stdtypes.html#str.splitlines | ||||
* | NativeEnvironment supports async mode | remidebette | 2021-04-05 | 1 | -0/+24 |
| | |||||
* | add Undefined.__aiter__ | Jafnee | 2021-04-05 | 1 | -0/+14 |
| | |||||
* | Undefined.__contains__ raises UndefinedError | David Parker | 2021-04-05 | 1 | -0/+1 |
| | |||||
* | parse hex, octal, and binary integer literals | Alex Mykyta | 2021-04-05 | 1 | -0/+7 |
| | |||||
* | filters.py: do_indent: ident filter can indent with arbitrary characters | Lars Kollstedt | 2021-04-05 | 1 | -0/+4 |
| | | | | | | | | | | | Allow indention with generic characters, e.g. Tabs. Implemenented the behavior requested in https://github.com/pallets/jinja/pull/1167#issuecomment-612644701 The width param can be string or int, if it is string it's the raw indention e.g. "\t". If it's int it's the number of spaces. In other cases an FilterArgumentError is raised, to avoid confusion. | ||||
* | add pgettext and npgettext | Sardorbek Imomaliev | 2021-04-05 | 1 | -8/+81 |
| | |||||
* | add 'is filter' and 'is test' tests | David Lord | 2021-04-04 | 2 | -6/+31 |
| | | | | | | This required allowing tests to be decorated with '@environmentfilter'. Tests are essentially the same as filters now, the node, compiler, and environment have been refactored to extract common behavior. | ||||
* | allow optional use of filter based on existence | Amy | 2021-04-04 | 1 | -0/+48 |
| | |||||
* | more detailed docs about globals | David Lord | 2021-03-31 | 1 | -22/+17 |
| | |||||
* | fix bug with cached templates not using new globals | Amy | 2021-03-30 | 1 | -0/+34 |
| | |||||
* | track local loop/block vars for contextfunctions | Amy | 2021-03-26 | 1 | -0/+98 |
| | |||||
* | map filter can use False as default | BALaka-18 | 2021-02-24 | 1 | -0/+8 |
| | |||||
* | fix new formatting issues | David Lord | 2021-01-30 | 3 | -4/+4 |
| | |||||
* | update urlize docs, clean up code | David Lord | 2021-01-30 | 1 | -2/+2 |
| | | | | | | move regexes near implementation commented verbose regex for http pattern renamed extra_uri_schemes to extra_schemes | ||||
* | Improve and extend urlize | Bebleo | 2021-01-30 | 2 | -0/+32 |
| | |||||
* | deprecate 'with' and 'autoescape' extensions | FawziyahAlebiosu | 2021-01-29 | 2 | -14/+11 |
| | |||||
* | add required attribute to blocks | Amy | 2021-01-29 | 2 | -1/+120 |
| | | | | | required blocks must be overridden at some point, although not necessarily by the direct child template | ||||
* | detect custom async filters in as_const | Richard Gibson | 2020-10-31 | 1 | -0/+29 |
| | |||||
* | Setup mypy | Teymour Aldridge | 2020-07-28 | 3 | -4/+6 |
| | | | | | * 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 | ||||
* | ignore trim_blocks using '+%}' | Amy | 2020-06-22 | 1 | -0/+118 |
| | |||||
* | imported templates can see the current globals | Amy | 2020-06-22 | 1 | -2/+19 |
| | | | | | | | _get_default_module takes an optional context to indicate that the template is imported. If there are differences between the environment and rendered template globals, a new module is used for the imported template. | ||||
* | add more tests for import context behavior | Amy | 2020-06-19 | 1 | -0/+24 |
| | |||||
* | remove sandbox._MagicFormatMapping | Amy | 2020-06-15 | 1 | -0/+7 |
| | | | | add test for escape formatter | ||||
* | Merge branch '2.11.x' | David Lord | 2020-04-13 | 2 | -0/+103 |
|\ | |||||
| * | native only evals at end of render | David Lord | 2020-04-13 | 1 | -0/+9 |
| | | | | | | | | Co-authored-by: Martin Krizek <mkrizek@redhat.com> | ||||
| * | Add tests for lstrip whitespace behavior fix | Peter Dolak | 2020-04-13 | 1 | -0/+92 |
| | | | | | | | | | | Also did peformance tests for the previous fix and saw no measurable impact. | ||||
* | | add changelog and cleanup for pep 451 support | David Lord | 2020-03-30 | 1 | -14/+7 |
| | | |||||
* | | Use importlib machinery to fix PEP 451 import hooks | Anthony Sottile | 2020-03-30 | 1 | -0/+41 |
| | | |||||
* | | Merge branch '2.11.x' | David Lord | 2020-03-30 | 2 | -0/+29 |
|\ \ | |/ | |||||
| * | namespace object works in async templates | Bart Feenstra | 2020-03-30 | 1 | -0/+11 |
| | | |||||
| * | Fix tokens line number calculation when whitespace stripping is used | Andrey Lisin | 2020-03-30 | 1 | -0/+18 |
| | | |||||
* | | Merge branch '2.11.x' | David Lord | 2020-03-30 | 1 | -0/+15 |
|\ \ | |/ | |||||
| * | Revert "PackageLoader doesn't depend on setuptools" | David Lord | 2020-03-30 | 2 | -50/+0 |
| | | | | | | | | This reverts commit 4b6077a8c0a0f56bb8dbac37f8f9027130b4091c. | ||||
| * | 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-27 | 1 | -0/+7 |
|\ \ | |/ | |||||
| * | use soft_str in do_wordcount, to trigger undefined | Matt Martz | 2020-02-27 | 1 | -0/+7 |
| | | |||||
* | | Merge branch '2.11.x' | David Lord | 2020-02-05 | 16 | -111/+0 |
|\ \ | |/ | |||||
| * | remove custom pytest marks | David Lord | 2020-02-05 | 16 | -111/+0 |
| | | |||||
* | | apply pyupgrade and f-strings | David Lord | 2020-02-05 | 19 | -261/+229 |
| | | |||||
* | | remove more compat code | David Lord | 2020-02-05 | 3 | -36/+24 |
| | | |||||
* | | remove _compat module | David Lord | 2020-02-05 | 9 | -162/+40 |
| | | |||||
* | | remove deprecated code | David Lord | 2020-02-05 | 2 | -11/+2 |
|/ | |||||
* | add changelog and test | David Lord | 2020-02-04 | 1 | -0/+19 |
| | |||||
* | Added regression test for slicing of attributes | Armin Ronacher | 2020-01-30 | 1 | -0/+4 |
| | |||||
* | isolate bytecode cache tests | David Lord | 2020-01-26 | 1 | -3/+3 |
| |