Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | async support doesn't require patchinginline-async | David Lord | 2021-04-10 | 9 | -593/+453 |
| | |||||
* | Markup and escape should be imported from markupsafe | David Lord | 2021-04-10 | 2 | -11/+32 |
| | |||||
* | unify/rename filter and function decorators | David Lord | 2021-04-10 | 10 | -157/+286 |
| | | | | Use pass_context instead of contextfilter and contextfunction, etc. | ||||
* | extract common code for import/from nodes | David Lord | 2021-04-10 | 1 | -20/+13 |
| | |||||
* | refactor compiler environment.is_async checks | angelafrentz | 2021-04-09 | 1 | -25/+21 |
| | |||||
* | add default parameter to groupby | lisongmin | 2021-04-05 | 2 | -3/+19 |
| | |||||
* | Fix map documentation | Sam Bull | 2021-04-05 | 1 | -1/+1 |
| | |||||
* | update wording on dictionary default ordering | jeff | 2021-04-05 | 1 | -3/+2 |
| | |||||
* | Split lines in lexer only by \r\n, \r and \n | Matěj Volf | 2021-04-05 | 1 | -5/+10 |
| | | | | | | | | | | | | 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/+14 |
| | |||||
* | add Undefined.__aiter__ | Jafnee | 2021-04-05 | 1 | -0/+4 |
| | |||||
* | Undefined.__contains__ raises UndefinedError | David Parker | 2021-04-05 | 1 | -1/+1 |
| | |||||
* | parse hex, octal, and binary integer literals | Alex Mykyta | 2021-04-05 | 1 | -2/+17 |
| | |||||
* | filters.py: do_indent: ident filter can indent with arbitrary characters | Lars Kollstedt | 2021-04-05 | 1 | -3/+12 |
| | | | | | | | | | | | 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 type annotations to filters and tests | David Lord | 2021-04-05 | 6 | -206/+509 |
| | |||||
* | add pgettext and npgettext | Sardorbek Imomaliev | 2021-04-05 | 1 | -6/+57 |
| | |||||
* | add 'is filter' and 'is test' tests | David Lord | 2021-04-04 | 4 | -97/+211 |
| | | | | | | 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 | 2 | -2/+27 |
| | |||||
* | more detailed docs about globals | David Lord | 2021-03-31 | 1 | -41/+80 |
| | |||||
* | fix bug with cached templates not using new globals | Amy | 2021-03-30 | 1 | -0/+10 |
| | |||||
* | track local loop/block vars for contextfunctions | Amy | 2021-03-26 | 2 | -4/+46 |
| | |||||
* | allow scoped blocks to access loop vars | Amy | 2021-03-26 | 1 | -3/+6 |
| | |||||
* | map filter can use False as default | BALaka-18 | 2021-02-24 | 1 | -1/+1 |
| | |||||
* | consistent typing config | David Lord | 2021-02-24 | 6 | -11/+16 |
| | |||||
* | update tojson docs | David Lord | 2021-02-01 | 2 | -46/+46 |
| | |||||
* | Merge branch '2.11.x' | David Lord | 2021-01-31 | 2 | -9/+4 |
|\ | |||||
| * | release version 2.11.32.11.32.11.x | David Lord | 2021-01-31 | 1 | -1/+1 |
| | | |||||
| * | speed up urlize matching | David Lord | 2021-01-31 | 1 | -51/+56 |
| | | |||||
| * | do_dictsort: update example ready to copy/paste | Mark Hansen | 2020-05-16 | 1 | -4/+4 |
| | | | | | | When iterating over a dict you usually want to pull out the keys and values. | ||||
* | | fix new formatting issues | David Lord | 2021-01-30 | 3 | -16/+23 |
| | | |||||
* | | refactor urlize function | David Lord | 2021-01-30 | 1 | -63/+71 |
| | | | | | | | | | | | | | | | | | | don't try other url types if one already matched no-op function if trim is not enabled avoid backtracking when matching trailing punctuation match head and tail punctuation separately don't scan for unbalanced parentheses more than necessary ensure email domain starts and ends with a word character | ||||
* | | update urlize docs, clean up code | David Lord | 2021-01-30 | 3 | -71/+120 |
| | | | | | | | | | | | | 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 | 3 | -27/+93 |
| | | |||||
* | | deprecate 'with' and 'autoescape' extensions | FawziyahAlebiosu | 2021-01-29 | 1 | -2/+17 |
| | | |||||
* | | add required attribute to blocks | Amy | 2021-01-29 | 3 | -3/+27 |
| | | | | | | | | | | required blocks must be overridden at some point, although not necessarily by the direct child template | ||||
* | | native_concat: pass only strings to literal_eval | Martin Krizek | 2021-01-28 | 1 | -0/+2 |
| | | | | | | | | | | | | | | | | | | | | | | | | If there is only single node and it is not a string, there is no point in passing it into ``literal_eval``, just return it immediately. One of the examples where passing a non-string node into ``literal_eval`` would actually cause problems is when the node is ``Undefined``. On Python 3.10 this would cause ``UndefinedError`` instead of just ``Undefined`` being returned. Fixes #1335 | ||||
* | | add 'linetable' to the preserved CodeType attributes (#1334) | Thomas Moschny | 2021-01-19 | 1 | -0/+1 |
| | | | | | | | | | | add 'linetable' to the preserved CodeType attributes co_linetable replaces co_lnotab as part of PEP 626 in Python 3.10. | ||||
* | | detect custom async filters in as_const | Richard Gibson | 2020-10-31 | 1 | -4/+7 |
| | | |||||
* | | Setup mypy | Teymour Aldridge | 2020-07-28 | 8 | -28/+39 |
| | | | | | | | | | | * 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 | -4/+8 |
| | | |||||
* | | imported templates can see the current globals | Amy | 2020-06-22 | 4 | -7/+27 |
| | | | | | | | | | | | | | | _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. | ||||
* | | remove sandbox._MagicFormatMapping | Amy | 2020-06-15 | 1 | -32/+0 |
| | | | | | | | | add test for escape formatter | ||||
* | | update package and filesystem loader docs | David Lord | 2020-05-23 | 1 | -12/+17 |
| | | |||||
* | | Merge branch '2.11.x' | David Lord | 2020-04-13 | 2 | -30/+15 |
|\ \ | |/ | |||||
| * | release version 2.11.22.11.2 | David Lord | 2020-04-13 | 1 | -1/+1 |
| | | |||||
| * | native only evals at end of render | David Lord | 2020-04-13 | 1 | -24/+7 |
| | | | | | | | | Co-authored-by: Martin Krizek <mkrizek@redhat.com> | ||||
| * | Fix unintended lstrip_blocks behavior. Fixes #1138 | Peter Dolak | 2020-04-13 | 1 | -5/+8 |
| | | | | | | | | | | Introduced in #858. Tests will follow, also results of performance testing. | ||||
| * | Merge tag '2.11.1' into 2.11.x | David Lord | 2020-04-08 | 1 | -1/+1 |
| |\ | |||||
| | * | release version 2.11.12.11.1 | David Lord | 2020-01-30 | 1 | -1/+1 |
| | | | |||||
* | | | Update oudated CutomLoader code example (#1185) | Xinbin Huang | 2020-04-08 | 1 | -2/+2 |
| | | | | | | | | | py3 for CustomLoader example |