Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | update dependencies | David Lord | 2022-12-29 | 1 | -2/+4 |
| | |||||
* | normpath on final template filename | David Lord | 2022-03-25 | 1 | -4/+12 |
| | |||||
* | use `posixpath.join` when loading template names | David Lord | 2022-03-15 | 1 | -3/+4 |
| | |||||
* | add case_sensitive parameter groupby filter | David Lord | 2022-03-08 | 2 | -0/+39 |
| | | | | Co-authored-by: Yuri Sukhov <yuri.sukhov@gmail.com> | ||||
* | add parens around auto_await for filters and calls | David Lord | 2022-03-07 | 1 | -0/+16 |
| | |||||
* | add items filter | Armin Ronacher | 2022-03-07 | 1 | -0/+11 |
| | |||||
* | async_variant filters are pickleable | Jeff Dairiki | 2022-03-07 | 1 | -0/+6 |
| | |||||
* | specify context for translation block | David Lord | 2021-12-26 | 1 | -1/+13 |
| | |||||
* | support native types in macros | Martin Krizek | 2021-11-10 | 1 | -0/+7 |
| | |||||
* | remove deprecated legacy resolve mode for context subclass | David Lord | 2021-11-10 | 1 | -17/+0 |
| | |||||
* | Merge branch '3.0.x' | David Lord | 2021-11-09 | 4 | -2/+33 |
|\ | |||||
| * | PackageLoader works with single module file | David Lord | 2021-11-09 | 1 | -0/+22 |
| | | |||||
| * | Merge pull request #1509 from kianmeng/fix-typos | David Lord | 2021-11-09 | 1 | -2/+2 |
| |\ | | | | | | | Fix typos | ||||
| | * | Fix typos | Kian-Meng, Ang | 2021-10-12 | 1 | -2/+2 |
| | | | |||||
| * | | Use object.__hash__ for Node.__hash__ | Kristian Klette | 2021-11-09 | 1 | -0/+3 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This fixes a regression in commit 60293416db69782fd048a7820667afa4ae7c423b that changed the `__hash__` implementation of Node from the default pointer hash, to a hash based on the node fields. Since these fields contains list objects, they are not hashable, making every call to `Node.__hash__` fail. This breaks some third-party usage such as in `django-compressor` (See: https://github.com/django-compressor/django-compressor/issues/1060) This changed reverts the hash method back to using `object.__hash__` as the hash implementation. | ||||
| * | | native: keep same behavior on Python 3.10 | Martin Krizek | 2021-11-09 | 1 | -0/+6 |
| | | | |||||
* | | | drop Python 3.6 | David Lord | 2021-11-08 | 2 | -44/+14 |
| | | | |||||
* | | | Merge branch '3.0.x' | David Lord | 2021-11-05 | 1 | -3/+6 |
|\ \ \ | |/ / | |||||
| * | | Tests: Adapt expected traceback regexes for Python 3.11.0a1 | Miro Hrončok | 2021-11-05 | 1 | -3/+6 |
| |/ | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Fixes https://github.com/pallets/jinja/issues/1526 Before: File ".../broken.html", line 2, in <module> {{ fail() }} File ".../test_debug.py", line 32, in <lambda> tmpl.render(fail=lambda: 1 / 0) ZeroDivisionError: division by zero After: File ".../broken.html", line 2, in <module> {{ fail() }} ^^^^^^^^^^^^ File ".../test_debug.py", line 32, in <lambda> tmpl.render(fail=lambda: 1 / 0) ~~^~~ ZeroDivisionError: division by zero | ||||
* | | Tests: Make "Traceback did not match" an actual f-string | Miro Hrončok | 2021-11-02 | 1 | -1/+1 |
|/ | | | | | | | | | | | | | Otherwise the failure looks like this: > assert ( m is not None ), "Traceback did not match:\n\n{''.join(tb)}\nexpected:\n{expected_tb}" E AssertionError: Traceback did not match: E E {''.join(tb)} E expected: E {expected_tb} E assert None is not None | ||||
* | omit curdir from PackageLoader root path | David Lord | 2021-10-04 | 1 | -0/+11 |
| | | | | | | fixes compatibility with zip imports Co-authored-by: kuepe-sl <peter_kueffner@web.de> | ||||
* | imported macros can access template globals in async mode | Daniel Stone | 2021-10-04 | 2 | -31/+36 |
| | |||||
* | Fixes #1448: Revert Undefined.__contains__ to 2.x behaviour | Joachim Jablon | 2021-08-09 | 1 | -1/+2 |
| | |||||
* | make compile_templates deterministic | Takuto Ikuta | 2021-08-09 | 1 | -0/+28 |
| | | | | | Python3 doesn't keep insertion order for set(), so this sorts some places for deterministic output for compiled template. | ||||
* | clear assignments in loops at end of iteration | Amy | 2021-05-21 | 1 | -0/+7 |
| | |||||
* | use asyncio.run | David Lord | 2021-05-18 | 1 | -3/+12 |
| | |||||
* | Use pathlib in some test places | Danny Sepler | 2021-05-18 | 4 | -46/+27 |
| | |||||
* | rename default branch in files | David Lord | 2021-05-11 | 2 | -44/+47 |
| | |||||
* | add type annotations | David Lord | 2021-05-08 | 1 | -1/+1 |
| | |||||
* | deprecate legacy resolve mode | David Lord | 2021-04-11 | 1 | -5/+7 |
| | |||||
* | 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 |
| |