summaryrefslogtreecommitdiff
path: root/CHANGES.rst
Commit message (Collapse)AuthorAgeFilesLines
...
* | Merge branch '3.0.x'David Lord2021-05-131-0/+2
|\ \ | |/
| * show context for deprecated extensionsDavid Lord2021-05-131-0/+2
| |
* | Merge pull request #1434 from pallets/update-typingDavid Lord2021-05-131-1/+4
|\ \ | |/ | | Update typing
| * fix typing that wasn't available in Python 3.6.0David Lord2021-05-131-0/+1
| |
| * mark top-level names as exportedDavid Lord2021-05-131-1/+3
| |
* | Merge remote-tracking branch 'origin/3.0.x'David Lord2021-05-111-0/+2
|\ \ | |/
| * update markupsafe minimum versionDavid Lord2021-05-111-0/+2
| |
* | start version 3.1.0.dev0David Lord2021-05-111-0/+6
|/
* start version 3.0.1.dev0David Lord2021-05-111-0/+6
|
* release version 3.0.0David Lord2021-05-111-1/+1
|
* add type annotationsDavid Lord2021-05-081-0/+1
|
* deprecate legacy resolve modeDavid Lord2021-04-111-0/+2
|
* async support doesn't require patchinginline-asyncDavid Lord2021-04-101-0/+4
|
* unify/rename filter and function decoratorsDavid Lord2021-04-101-2/+11
| | | | Use pass_context instead of contextfilter and contextfunction, etc.
* add default parameter to groupbylisongmin2021-04-051-0/+2
|
* Split lines in lexer only by \r\n, \r and \nMatěj Volf2021-04-051-0/+2
| | | | | | | | | | | | 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 moderemidebette2021-04-051-0/+1
|
* add Undefined.__aiter__Jafnee2021-04-051-0/+1
|
* Undefined.__contains__ raises UndefinedErrorDavid Parker2021-04-051-0/+2
|
* parse hex, octal, and binary integer literalsAlex Mykyta2021-04-051-0/+2
|
* filters.py: do_indent: ident filter can indent with arbitrary charactersLars Kollstedt2021-04-051-0/+2
| | | | | | | | | | | 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 npgettextSardorbek Imomaliev2021-04-051-0/+2
|
* add 'is filter' and 'is test' testsDavid Lord2021-04-041-0/+5
| | | | | | 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 existenceAmy2021-04-041-0/+2
|
* more detailed docs about globalsDavid Lord2021-03-311-2/+3
|
* fix bug with cached templates not using new globalsAmy2021-03-301-0/+2
|
* track local loop/block vars for contextfunctionsAmy2021-03-261-0/+4
|
* map filter can use False as defaultBALaka-182021-02-241-0/+2
|
* Merge branch '2.11.x'David Lord2021-01-311-0/+10
|\
| * release version 2.11.32.11.32.11.xDavid Lord2021-01-311-1/+1
| |
| * speed up urlize matchingDavid Lord2021-01-311-0/+10
| |
* | refactor urlize functionDavid Lord2021-01-301-4/+5
| | | | | | | | | | | | | | | | | | 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 codeDavid Lord2021-01-301-0/+6
| | | | | | | | | | | | move regexes near implementation commented verbose regex for http pattern renamed extra_uri_schemes to extra_schemes
* | update docs about required blocks (#1340)David Lord2021-01-301-3/+4
| |
* | deprecate 'with' and 'autoescape' extensionsFawziyahAlebiosu2021-01-291-0/+1
| |
* | add required attribute to blocksAmy2021-01-291-0/+2
| | | | | | | | | | required blocks must be overridden at some point, although not necessarily by the direct child template
* | native_concat: pass only strings to literal_evalMartin Krizek2021-01-281-0/+3
| | | | | | | | | | | | | | | | | | | | | | | | 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
* | detect custom async filters in as_constRichard Gibson2020-10-311-0/+3
| |
* | ignore trim_blocks using '+%}'Amy2020-06-221-1/+1
| |
* | imported templates can see the current globalsAmy2020-06-221-0/+2
| | | | | | | | | | | | | | _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.
* | Merge branch '2.11.x'David Lord2020-04-131-3/+9
|\ \ | |/
| * fix changelog headerDavid Lord2020-04-131-2/+2
| |
| * release version 2.11.22.11.2David Lord2020-04-131-1/+1
| |
| * native only evals at end of renderDavid Lord2020-04-131-0/+4
| | | | | | | | Co-authored-by: Martin Krizek <mkrizek@redhat.com>
| * Add tests for lstrip whitespace behavior fixPeter Dolak2020-04-131-0/+2
| | | | | | | | | | Also did peformance tests for the previous fix and saw no measurable impact.
* | add changelog and cleanup for pep 451 supportDavid Lord2020-03-301-0/+2
| |
* | Merge branch '2.11.x'David Lord2020-03-301-0/+4
|\ \ | |/
| * namespace object works in async templatesBart Feenstra2020-03-301-0/+2
| |
| * Fix tokens line number calculation when whitespace stripping is usedAndrey Lisin2020-03-301-0/+2
| |
* | Merge branch '2.11.x'David Lord2020-03-301-0/+12
|\ \ | |/