Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | Trim trailing white space throughout the project | Jon Dufresne | 2018-08-29 | 1 | -1/+1 | |
| | | | | | | | | | | | | | | | | | | Many editors clean up trailing white space on save. By removing it all in one go, it helps keep future diffs cleaner by avoiding spurious white space changes on unrelated lines. | |||||
* | | | Merge pull request #802 from abadger/allow-more-splatting | David Lord | 2018-05-14 | 1 | -2/+7 | |
|\ \ \ | | | | | | | | | More closely match python splatting for calls | |||||
| * | | | More closely match python splatting for calls | Toshio Kuratomi | 2018-01-29 | 1 | -2/+7 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In Python, it's legal to use splats in function calls like this: call_function('123', *b, c=5, **d) Prior to this change, jinja2 did not allow that. It mandated that all splatting had to take place at the end of the call: call_function('123', c=5, *b, **d) This commit allows both orders. Additionally, this commit adds tests for more things that are illegal: namely giving a function a positional argument after using a splat to unpack positional arguments or giving a function a named argument after using a double splat to unpack keyword arguments. | |||||
* | | | | {% raw %} tests and note for documentation | ngr | 2018-05-14 | 1 | -0/+12 | |
| | | | | ||||||
* | | | | Fix spelling in docstring | Erik Johnson | 2018-03-19 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Add test cases for quotes and expand coverage to include Markup input | Erik Johnson | 2018-03-19 | 1 | -6/+17 | |
|/ / / | ||||||
* | | | Allow to pass a list to native_concat | Martin Krizek | 2018-01-17 | 1 | -0/+6 | |
|/ / | ||||||
* | | Support filters in set block | ThiefMaster | 2017-10-31 | 1 | -0/+27 | |
| | | | | | | | | | | - e.g {% set foo | trim %}...{% endset %} - closes #486 | |||||
* | | Merge branch 'master' into NATIVE_TYPES | David Lord | 2017-10-31 | 3 | -6/+16 | |
|\ \ | ||||||
| * \ | Merge branch '2.9-maintenance' | Adrian Moennich | 2017-08-22 | 2 | -4/+13 | |
| |\ \ | ||||||
| | * | | Compile `elif` tag to `elif` instead of `else: if`2.9-maintenance | Adrian Moennich | 2017-08-22 | 2 | -4/+13 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This avoids deep nesting in case of many `{% elif .. %}` blocks (which would fail during execution) and also deep recursion (which may fail during compilation) fixes #759 | |||||
| * | | | Merge branch '2.9-maintenance' | Armin Ronacher | 2017-08-09 | 1 | -2/+3 | |
| |\ \ \ | | |/ / | ||||||
| | * | | Make tojson always safe (fix #709) | Ayala Shachar | 2017-05-23 | 1 | -2/+3 | |
| | | | | ||||||
* | | | | quickly fix py3 tests | James Tanner | 2017-07-25 | 1 | -1/+1 | |
| | | | | ||||||
* | | | | Add requested patch for safe_repr and nodes.Impossible | James Tanner | 2017-07-25 | 1 | -0/+16 | |
| | | | | ||||||
* | | | | Merge branch 'master' into NATIVE_TYPES | Adrian | 2017-07-14 | 3 | -18/+117 | |
|\ \ \ \ | |/ / / | ||||||
| * | | | rewrite tests to match usage | David Lord | 2017-07-09 | 1 | -40/+37 | |
| | | | | ||||||
| * | | | Adds tests for the memcached bytecode cache module | Alex Kahan | 2017-07-09 | 1 | -1/+64 | |
| | | | | ||||||
| * | | | add test and changelog | David Lord | 2017-07-08 | 1 | -10/+10 | |
| | | | | | | | | | | | | | | | | use ignore_case function | |||||
| * | | | shorten arguments | David Lord | 2017-07-07 | 1 | -8/+19 | |
| | | | | | | | | | | | | | | | | | | | | add test for single line update changelog | |||||
| * | | | Ignore empty lines in indent filter | Francisco Jiménez Cabrera | 2017-07-07 | 1 | -5/+9 | |
| | | | | ||||||
| * | | | add test and changelog | David Lord | 2017-07-07 | 1 | -0/+6 | |
| | | | | ||||||
| * | | | add tests and changelog | David Lord | 2017-07-07 | 1 | -2/+20 | |
| | | | | ||||||
* | | | | Add support for the Environment to optionally return native types. | James Tanner | 2017-07-06 | 1 | -0/+94 | |
|/ / / | | | | | | | | | | | | | | | | This works by having an alternate CodeGenerator that avoids doing to_string after the yield statement and a new version of concat that handles the returned generator with a bit more "intelligence". | |||||
* | | | allow using comparison operator symbols as tests | David Lord | 2017-07-06 | 1 | -8/+28 | |
| | | | | | | | | | | | | | | | | | | add tests and aliases for all comparison operators adjust docs to prefer short names for compare tests closes #664 | |||||
* | | | remove test copied from markupsafe | David Lord | 2017-07-06 | 1 | -18/+0 | |
| | | | ||||||
* | | | parametrize tests | David Lord | 2017-07-06 | 1 | -24/+20 | |
| | | | | | | | | | | | | | | | argument order consistent with existing filters add changelog | |||||
* | | | Added min and max filters | Sebastian Noack | 2017-07-06 | 1 | -0/+24 | |
| | | | ||||||
* | | | make attrgetter take generic postprocess function | David Lord | 2017-07-05 | 1 | -9/+9 | |
| | | | | | | | | | | | | add changelog | |||||
* | | | Merge branch 'master' into unique-filter | David Lord | 2017-07-05 | 19 | -108/+1835 | |
|\ \ \ | ||||||
| * | | | fix random test for py2 | David Lord | 2017-07-05 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | add changelog | |||||
| * | | | test compares random filter to random call with same seed | David Lord | 2017-07-05 | 1 | -11/+15 | |
| | | | | ||||||
| * | | | Merge branch 'master' into dont-inline-random | David Lord | 2017-07-05 | 19 | -103/+1819 | |
| |\ \ \ | ||||||
| | * \ \ | Merge pull request #731 from pallets/feature/kill-stringdefs | David Lord | 2017-07-04 | 1 | -0/+27 | |
| | |\ \ \ | | | | | | | | | | | | | Use str.isidentifier to match idents on python 3 | |||||
| | | * | | | go back to generating regex, simplifiedfeature/kill-stringdefs | David Lord | 2017-07-04 | 1 | -3/+9 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | new version uses ~2KB vs 200KB memory, is ~100x faster to load move script to generate pattern to scripts directory add more tests | |||||
| | | * | | | remove unnecessary \b from name regex | David Lord | 2017-07-03 | 1 | -4/+4 | |
| | | | | | | ||||||
| | | * | | | switch back to unicode escapes | David Lord | 2017-07-02 | 1 | -4/+4 | |
| | | | | | | ||||||
| | | * | | | fix unicode for py2 | David Lord | 2017-07-02 | 1 | -13/+13 | |
| | | | | | | ||||||
| | | * | | | test for new identifier lexer | David Lord | 2017-07-02 | 1 | -0/+21 | |
| | | | | | | | | | | | | | | | | | | | | | | | | currently fails on special case unicode | |||||
| | * | | | | Add support for `{% trans trimmed ... %}` | Adrian Moennich | 2017-07-03 | 1 | -0/+68 | |
| | |/ / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Same behavior as in Django: All linebreaks and the whitespace surrounding linebreaks are replaced with a single space. closes #504 | |||||
| | * | | | Add unit tests for namespace functionality | Adrian Moennich | 2017-06-24 | 1 | -2/+55 | |
| | | | | | ||||||
| | * | | | Add changed() to loop context | Adrian Moennich | 2017-06-24 | 2 | -0/+14 | |
| | | | | | ||||||
| | * | | | Add previtem/nextitem to loop context | Adrian Moennich | 2017-06-24 | 2 | -0/+40 | |
| | | | | | | | | | | | | | | | | | | | | related: #641 | |||||
| | * | | | Remove print() output during test | Jon Dufresne | 2017-04-09 | 1 | -1/+0 | |
| | | | | | | | | | | | | | | | | | | | | Looks like it was left in from debugging. | |||||
| | * | | | Merge branch '2.9-maintenance' | Armin Ronacher | 2017-04-03 | 1 | -0/+14 | |
| | |\ \ \ | | | |/ / | | | | / | | | |/ | | |/| | ||||||
| | | * | Fix custom contexts in fast resolve mode | Adrian Moennich | 2017-03-15 | 1 | -0/+14 | |
| | | | | | | | | | | | | | | | | closes #675 | |||||
| | * | | Merge branch '2.9-maintenance' | Armin Ronacher | 2017-01-28 | 1 | -0/+15 | |
| | |\ \ | | | |/ | ||||||
| | | * | Fixed async macro autoescape. Fixes #671 | Armin Ronacher | 2017-01-28 | 1 | -0/+15 | |
| | | | | ||||||
| | * | | Merge branch '2.9-maintenance' | Armin Ronacher | 2017-01-24 | 1 | -0/+4 | |
| | |\ \ | | | |/ | ||||||
| | | * | Resolved extends errors in async mode (Fixes #668) | Armin Ronacher | 2017-01-24 | 1 | -0/+4 | |
| | | | |