Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | async support doesn't require patchinginline-async | David Lord | 2021-04-10 | 14 | -605/+462 |
| | |||||
* | Merge pull request #1391 from pallets/markupsafe-imports | David Lord | 2021-04-10 | 8 | -34/+37 |
|\ | | | | | Markup and escape should be imported from markupsafe | ||||
| * | Markup and escape should be imported from markupsafe | David Lord | 2021-04-10 | 8 | -34/+37 |
|/ | |||||
* | Merge pull request #1389 from pallets/unify-decorators | David Lord | 2021-04-10 | 17 | -242/+386 |
|\ | | | | | unify/rename context function decorators | ||||
| * | unify/rename filter and function decorators | David Lord | 2021-04-10 | 17 | -222/+373 |
| | | | | | | | | Use pass_context instead of contextfilter and contextfunction, etc. | ||||
| * | extract common code for import/from nodes | David Lord | 2021-04-10 | 1 | -20/+13 |
|/ | |||||
* | Merge pull request #1152 from angelafrentz/refactor_ternary_statement_compiler | David Lord | 2021-04-09 | 1 | -25/+21 |
|\ | |||||
| * | refactor compiler environment.is_async checks | angelafrentz | 2021-04-09 | 1 | -25/+21 |
|/ | |||||
* | Merge pull request #1387 from pallets/dependabot/pip/urllib3-1.26.4 | dependabot-preview[bot] | 2021-04-06 | 2 | -2/+2 |
|\ | |||||
| * | [Security] Bump urllib3 from 1.26.3 to 1.26.4 | dependabot-preview[bot] | 2021-04-06 | 2 | -2/+2 |
|/ | | | | | | | | Bumps [urllib3](https://github.com/urllib3/urllib3) from 1.26.3 to 1.26.4. **This update includes a security fix.** - [Release notes](https://github.com/urllib3/urllib3/releases) - [Changelog](https://github.com/urllib3/urllib3/blob/main/CHANGES.rst) - [Commits](https://github.com/urllib3/urllib3/compare/1.26.3...1.26.4) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> | ||||
* | Merge pull request #1360 from lisongmin/add-default-value-to-groupby | David Lord | 2021-04-05 | 4 | -3/+36 |
|\ | | | | | Ability to set default value in groupby filter | ||||
| * | add default parameter to groupby | lisongmin | 2021-04-05 | 4 | -3/+36 |
|/ | |||||
* | Merge pull request #1367 from mvolfik/docs-fix | David Lord | 2021-04-05 | 1 | -1/+5 |
|\ | | | | | line statements have no default | ||||
| * | Fix incorrect docs - line statements have no default | Matěj Volf | 2021-04-05 | 1 | -1/+5 |
|/ | |||||
* | Merge pull request #1364 from Dreamsorcerer/patch-2 | David Lord | 2021-04-05 | 1 | -1/+1 |
|\ | | | | | Fix map documentation | ||||
| * | Fix map documentation | Sam Bull | 2021-04-05 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #1236 from sixtyfathoms/fix/issue-1184 | David Lord | 2021-04-05 | 2 | -6/+13 |
|\ | | | | | Update wording on dictionary default ordering | ||||
| * | update wording on dictionary default ordering | jeff | 2021-04-05 | 2 | -6/+13 |
| | | |||||
* | | Merge pull request #1226 from geographika/patch-1 | David Lord | 2021-04-05 | 1 | -2/+2 |
|\ \ | |/ |/| | Add symbol names for tilde and pipe | ||||
| * | add symbol names for tilde and pipe operators | Seth G | 2021-04-05 | 1 | -2/+2 |
|/ | |||||
* | Merge pull request #1366 from mvolfik/fix-unicode-newlines | David Lord | 2021-04-05 | 3 | -5/+19 |
|\ | | | | | Fix unicode newlines | ||||
| * | Split lines in lexer only by \r\n, \r and \n | Matěj Volf | 2021-04-05 | 3 | -5/+19 |
|/ | | | | | | | | | | | | 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 | ||||
* | Merge pull request #1363 from remidebette/add-native-async-support | David Lord | 2021-04-05 | 3 | -0/+39 |
|\ | | | | | Add async support to NativeEnvironment | ||||
| * | NativeEnvironment supports async mode | remidebette | 2021-04-05 | 3 | -0/+39 |
|/ | |||||
* | Merge pull request #1294 from Jafnee/chainableundefined-aiter-bug | David Lord | 2021-04-05 | 3 | -0/+19 |
|\ | | | | | Add __aiter__ to Undefined | ||||
| * | add Undefined.__aiter__ | Jafnee | 2021-04-05 | 3 | -0/+19 |
|/ | |||||
* | Merge pull request #1204 from dparker2/undefined-contains | David Lord | 2021-04-05 | 3 | -1/+4 |
|\ | | | | | Raise UndefinedError from Undefined.__contains__ | ||||
| * | Undefined.__contains__ raises UndefinedError | David Parker | 2021-04-05 | 3 | -1/+4 |
|/ | |||||
* | Merge pull request #1171 from amykyta3/feature/base-integer-literals | David Lord | 2021-04-05 | 3 | -2/+26 |
|\ | | | | | Add support for hex, octal, and binary integer literals | ||||
| * | parse hex, octal, and binary integer literals | Alex Mykyta | 2021-04-05 | 3 | -2/+26 |
|/ | |||||
* | Merge pull request #1385 from pallets/pre-commit-ci-update-config | David Lord | 2021-04-05 | 1 | -1/+1 |
|\ | | | | | [pre-commit.ci] pre-commit autoupdate | ||||
| * | [pre-commit.ci] pre-commit autoupdate | pre-commit-ci[bot] | 2021-04-05 | 1 | -1/+1 |
|/ | |||||
* | Merge pull request #1167 from LarsKollstedt/allow_indent_with_generic_char | David Lord | 2021-04-05 | 3 | -3/+18 |
|\ | | | | | indent filter can indent with arbitrary characters | ||||
| * | filters.py: do_indent: ident filter can indent with arbitrary characters | Lars Kollstedt | 2021-04-05 | 3 | -3/+18 |
|/ | | | | | | | | | | | 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. | ||||
* | Merge pull request #1384 from pallets/typing-filters-tests | David Lord | 2021-04-05 | 6 | -206/+509 |
|\ | | | | | add type annotations to filters and tests | ||||
| * | add type annotations to filters and tests | David Lord | 2021-04-05 | 6 | -206/+509 |
|/ | |||||
* | Merge pull request #1126 from imomaliev/pgettext-support | Adrian | 2021-04-05 | 4 | -24/+168 |
|\ | | | | | add pgettext to InternationalizationExtension | ||||
| * | add pgettext and npgettext | Sardorbek Imomaliev | 2021-04-05 | 4 | -24/+168 |
|/ | |||||
* | Merge pull request #1383 from pallets/test-decorators | David Lord | 2021-04-04 | 8 | -175/+342 |
|\ | | | | | add 'is filter' and 'is test' tests | ||||
| * | add 'is filter' and 'is test' tests | David Lord | 2021-04-04 | 8 | -175/+342 |
|/ | | | | | | 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. | ||||
* | Merge pull request #1248 from MLH-Fellowship/test-for-filter | David Lord | 2021-04-04 | 4 | -2/+77 |
|\ | | | | | allow optional use of a filter based on its existence | ||||
| * | allow optional use of filter based on existence | Amy | 2021-04-04 | 4 | -2/+77 |
|/ | |||||
* | Merge pull request #1374 from pallets/docs-globals | David Lord | 2021-03-31 | 4 | -78/+139 |
|\ | | | | | Template globals use ChainMap, more docs about globals | ||||
| * | more detailed docs about globals | David Lord | 2021-03-31 | 4 | -78/+139 |
|/ | |||||
* | Merge pull request #1244 from MLH-Fellowship/cache-bugs | David Lord | 2021-03-30 | 3 | -0/+46 |
|\ | | | | | Fix bug with cached templates not registering new globals | ||||
| * | fix bug with cached templates not using new globals | Amy | 2021-03-30 | 3 | -0/+46 |
|/ | |||||
* | Merge pull request #1242 from MLH-Fellowship/context-bug | Amy Lei | 2021-03-26 | 4 | -7/+154 |
|\ | | | | | fix bugs with contextfunction and nested loop variables | ||||
| * | track local loop/block vars for contextfunctions | Amy | 2021-03-26 | 4 | -4/+148 |
| | | |||||
| * | allow scoped blocks to access loop vars | Amy | 2021-03-26 | 1 | -3/+6 |
|/ | |||||
* | Merge pull request #1371 from pallets/pre-commit-ci-update-config | David Lord | 2021-03-22 | 1 | -1/+1 |
|\ | | | | | [pre-commit.ci] pre-commit autoupdate |