summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* async support doesn't require patchinginline-asyncDavid Lord2021-04-1014-605/+462
|
* Merge pull request #1391 from pallets/markupsafe-importsDavid Lord2021-04-108-34/+37
|\ | | | | Markup and escape should be imported from markupsafe
| * Markup and escape should be imported from markupsafeDavid Lord2021-04-108-34/+37
|/
* Merge pull request #1389 from pallets/unify-decoratorsDavid Lord2021-04-1017-242/+386
|\ | | | | unify/rename context function decorators
| * unify/rename filter and function decoratorsDavid Lord2021-04-1017-222/+373
| | | | | | | | Use pass_context instead of contextfilter and contextfunction, etc.
| * extract common code for import/from nodesDavid Lord2021-04-101-20/+13
|/
* Merge pull request #1152 from angelafrentz/refactor_ternary_statement_compilerDavid Lord2021-04-091-25/+21
|\
| * refactor compiler environment.is_async checksangelafrentz2021-04-091-25/+21
|/
* Merge pull request #1387 from pallets/dependabot/pip/urllib3-1.26.4dependabot-preview[bot]2021-04-062-2/+2
|\
| * [Security] Bump urllib3 from 1.26.3 to 1.26.4dependabot-preview[bot]2021-04-062-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-groupbyDavid Lord2021-04-054-3/+36
|\ | | | | Ability to set default value in groupby filter
| * add default parameter to groupbylisongmin2021-04-054-3/+36
|/
* Merge pull request #1367 from mvolfik/docs-fixDavid Lord2021-04-051-1/+5
|\ | | | | line statements have no default
| * Fix incorrect docs - line statements have no defaultMatěj Volf2021-04-051-1/+5
|/
* Merge pull request #1364 from Dreamsorcerer/patch-2David Lord2021-04-051-1/+1
|\ | | | | Fix map documentation
| * Fix map documentationSam Bull2021-04-051-1/+1
|/
* Merge pull request #1236 from sixtyfathoms/fix/issue-1184David Lord2021-04-052-6/+13
|\ | | | | Update wording on dictionary default ordering
| * update wording on dictionary default orderingjeff2021-04-052-6/+13
| |
* | Merge pull request #1226 from geographika/patch-1David Lord2021-04-051-2/+2
|\ \ | |/ |/| Add symbol names for tilde and pipe
| * add symbol names for tilde and pipe operatorsSeth G2021-04-051-2/+2
|/
* Merge pull request #1366 from mvolfik/fix-unicode-newlinesDavid Lord2021-04-053-5/+19
|\ | | | | Fix unicode newlines
| * Split lines in lexer only by \r\n, \r and \nMatěj Volf2021-04-053-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-supportDavid Lord2021-04-053-0/+39
|\ | | | | Add async support to NativeEnvironment
| * NativeEnvironment supports async moderemidebette2021-04-053-0/+39
|/
* Merge pull request #1294 from Jafnee/chainableundefined-aiter-bugDavid Lord2021-04-053-0/+19
|\ | | | | Add __aiter__ to Undefined
| * add Undefined.__aiter__Jafnee2021-04-053-0/+19
|/
* Merge pull request #1204 from dparker2/undefined-containsDavid Lord2021-04-053-1/+4
|\ | | | | Raise UndefinedError from Undefined.__contains__
| * Undefined.__contains__ raises UndefinedErrorDavid Parker2021-04-053-1/+4
|/
* Merge pull request #1171 from amykyta3/feature/base-integer-literalsDavid Lord2021-04-053-2/+26
|\ | | | | Add support for hex, octal, and binary integer literals
| * parse hex, octal, and binary integer literalsAlex Mykyta2021-04-053-2/+26
|/
* Merge pull request #1385 from pallets/pre-commit-ci-update-configDavid Lord2021-04-051-1/+1
|\ | | | | [pre-commit.ci] pre-commit autoupdate
| * [pre-commit.ci] pre-commit autoupdatepre-commit-ci[bot]2021-04-051-1/+1
|/
* Merge pull request #1167 from LarsKollstedt/allow_indent_with_generic_charDavid Lord2021-04-053-3/+18
|\ | | | | indent filter can indent with arbitrary characters
| * filters.py: do_indent: ident filter can indent with arbitrary charactersLars Kollstedt2021-04-053-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-testsDavid Lord2021-04-056-206/+509
|\ | | | | add type annotations to filters and tests
| * add type annotations to filters and testsDavid Lord2021-04-056-206/+509
|/
* Merge pull request #1126 from imomaliev/pgettext-supportAdrian2021-04-054-24/+168
|\ | | | | add pgettext to InternationalizationExtension
| * add pgettext and npgettextSardorbek Imomaliev2021-04-054-24/+168
|/
* Merge pull request #1383 from pallets/test-decoratorsDavid Lord2021-04-048-175/+342
|\ | | | | add 'is filter' and 'is test' tests
| * add 'is filter' and 'is test' testsDavid Lord2021-04-048-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-filterDavid Lord2021-04-044-2/+77
|\ | | | | allow optional use of a filter based on its existence
| * allow optional use of filter based on existenceAmy2021-04-044-2/+77
|/
* Merge pull request #1374 from pallets/docs-globalsDavid Lord2021-03-314-78/+139
|\ | | | | Template globals use ChainMap, more docs about globals
| * more detailed docs about globalsDavid Lord2021-03-314-78/+139
|/
* Merge pull request #1244 from MLH-Fellowship/cache-bugsDavid Lord2021-03-303-0/+46
|\ | | | | Fix bug with cached templates not registering new globals
| * fix bug with cached templates not using new globalsAmy2021-03-303-0/+46
|/
* Merge pull request #1242 from MLH-Fellowship/context-bugAmy Lei2021-03-264-7/+154
|\ | | | | fix bugs with contextfunction and nested loop variables
| * track local loop/block vars for contextfunctionsAmy2021-03-264-4/+148
| |
| * allow scoped blocks to access loop varsAmy2021-03-261-3/+6
|/
* Merge pull request #1371 from pallets/pre-commit-ci-update-configDavid Lord2021-03-221-1/+1
|\ | | | | [pre-commit.ci] pre-commit autoupdate