Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | async templates await attribute accessrefactor-loop-context | David Lord | 2019-11-07 | 2 | -20/+24 |
| | |||||
* | clarify quoting behavior of urlencode filter | David Lord | 2019-11-04 | 1 | -12/+17 |
| | |||||
* | reformat, doc, and test for wordwrap | David Lord | 2019-11-01 | 1 | -0/+6 |
| | |||||
* | Merge pull request #673 from MrSenko/get_corresponding_lineno_traceback | David Lord | 2019-11-01 | 1 | -0/+4 |
|\ | | | | | handle template.get_corresponding_lineno() for lines without debug info | ||||
| * | Add test for Template.get_corresponding_lineno() | Mr. Senko | 2017-01-29 | 1 | -0/+4 |
| | | | | | | | | this currently breaks with an exception inside Jinja | ||||
* | | creating a NativeTemplate creates a NativeEnvironmentnative-template-env | David Lord | 2019-10-28 | 1 | -119/+123 |
| | | |||||
* | | don't create a third queue | David Lord | 2019-10-24 | 1 | -1/+2 |
| | | |||||
* | | LRUCache.copy initializes queue methods | Ryan Siemens | 2019-10-24 | 1 | -1/+12 |
| | | |||||
* | | preserve quotes between nodes in native env | David Lord | 2019-10-22 | 1 | -1/+17 |
| | | |||||
* | | support pathlib in FileSystemLoader and ModuleLoader | Alex Chan | 2019-10-21 | 3 | -8/+95 |
| | | |||||
* | | PackageLoader doesn't depend on setuptools | David Lord | 2019-10-17 | 2 | -7/+58 |
| | | |||||
* | | fixing LoopContext, loops indexing and iterator length property | aayushuppal | 2019-10-14 | 1 | -0/+48 |
| | | |||||
* | | Don't make cond_expr_undefined configurable | Adrian Moennich | 2019-10-13 | 1 | -9/+1 |
| | | |||||
* | | Use separate undefined object for CondExpr | Adrian Moennich | 2019-10-13 | 1 | -0/+9 |
| | | |||||
* | | skip template with same name as directory | David Lord | 2019-10-13 | 2 | -0/+13 |
| | | | | | | | | | | | | When using multiple paths with FileSystemLoader, a template with the same name as a directory will not prevent loading a template in the directory. | ||||
* | | don't finalize TemplateData nodesno-finalize-template-data | David Lord | 2019-10-12 | 1 | -10/+47 |
| | | | | | | | | | | Finalize only applies to the output of expressions (constant or not). Add tests for context, eval, and env finalize functions. | ||||
* | | fix invalid double extends test | David Lord | 2019-10-10 | 1 | -3/+3 |
| | | |||||
* | | Replaced try...catch within tests with pytest.raisespytest-cleanup | Kevin Brown | 2019-10-10 | 6 | -35/+15 |
| | | | | | | | | | | | | This still leaves one in test_debug which relies on reading out the traceback and cannot easily be replaced by pytest.raises like the others. | ||||
* | | Add more strict type tests | Dag Wieers | 2019-10-09 | 1 | -39/+97 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This PR adds a few more type-related tests. - boolean Testing of an object is a boolean required 2 tests. - false Make this similar to testing none value - true Make this similar to testing none value - integer The existing 'number' test does not make a distinction between integer, float or even booleans - float The existing 'number' test does not make a distinction between integer, float or even booleans | ||||
* | | changed test_join functions to unique names | Brandon Tomás | 2019-10-09 | 1 | -2/+2 |
| | | |||||
* | | Merge pull request #938 from stevenorum/master | David Lord | 2019-10-07 | 1 | -0/+6 |
|\ \ | | | | | | | Fixing compiler handling of parens around boolean comparisons. | ||||
| * | | Fixing compiler handling of parens around boolean comparisons. | Steve Norum | 2019-01-12 | 1 | -0/+6 |
| | | | |||||
* | | | Eliminate dead code by using pytests.raises instead of try/except/else | btharper | 2019-10-06 | 2 | -15/+3 |
| | | | |||||
* | | | don't bypass autoescape | David Lord | 2019-10-04 | 1 | -13/+5 |
| | | | |||||
* | | | Add support for a {% debug %} extension tag. | Shaheed Haque | 2019-10-04 | 1 | -0/+16 |
| | | | | | | | | | | | | This dumps the available variables, filters and tests. | ||||
* | | | Fix bug with when using Markup on ChainableUndefined | Laurence de Bruxelles | 2019-10-04 | 1 | -0/+5 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Wrapping a ChainableUndefined object with Markup causes an UndefinedError because Markup thinks that ChainableUndefined has an attribute called __html__ and tries to call it. This commit fixes this by defining a method __html__ that calls ChainableUndefined.__str__. We also add a regression test. | ||||
* | | | add chars option to trim | Matteo Ferrando | 2019-10-04 | 1 | -0/+8 |
| | | | |||||
* | | | Add tests for Undefined classes | EtiennePelletier | 2019-10-04 | 1 | -0/+15 |
| | | | |||||
* | | | Add tests for utils.py - LRUCache, Lorem Ipsum & + | EtiennePelletier | 2019-10-04 | 2 | -4/+96 |
| | | | |||||
* | | | Merge branch '2.10.x' | David Lord | 2019-07-26 | 1 | -0/+9 |
|\ \ \ | |||||
| * | | | sandbox uses xrange on Python 2 | Prakhar Bhandari | 2019-07-22 | 1 | -1/+10 |
| | | | | |||||
* | | | | clean up numeric underscore support | David Lord | 2019-07-23 | 2 | -38/+53 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | add changelog clean up docs parametrize tests explain float regex | ||||
* | | | | support underscore in int and float | CleoQc | 2019-07-23 | 1 | -3/+10 |
| | | | | |||||
* | | | | clean up scientific notation support | David Lord | 2019-07-23 | 1 | -3/+30 |
| | | | | | | | | | | | | | | | | | | | | | | | | add changelog clean up docs parametrize tests | ||||
* | | | | support scientific notation | CleoQc | 2019-07-22 | 1 | -1/+3 |
| | | | | |||||
* | | | | exclude globals from find_undeclared_variables | Brendan | 2019-07-22 | 1 | -0/+4 |
| | | | | |||||
* | | | | add default to map filter | Kevin | 2019-07-22 | 1 | -0/+22 |
| | | | | |||||
* | | | | Allow '{%+' to be valid syntax (but NOP) when lstrip_blocks == False. Fixes ↵ | Mark Roth | 2019-07-20 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | #748. | ||||
* | | | | Merge branch '2.10.x' | David Lord | 2019-07-20 | 1 | -1/+43 |
|\ \ \ \ | |/ / / | |||||
| * | | | Register custom test category markers. | Ralph Giles | 2019-07-20 | 1 | -1/+43 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Since around pytest 3.6 it's been possible to register custom markers, and since version 4.5.0 pytest warns about any which are not registered. Register a list of such markers, extracted from those warnings, so they don't clutter the test output. | ||||
* | | | | Merge pull request #1002 from ↵ | Kevin Brown | 2019-06-24 | 1 | -0/+4 |
|\ \ \ \ | | | | | | | | | | | | | | | | | | | | | eplata31/bugfix-template-parse-if-with-dict-subproperty BUGFIX #930 - Template parse if with when referencing with dictionary… | ||||
| * | | | | BUGFIX #930 - Template parse if with when referencing with dictionary ↵ | eplata31 | 2019-05-13 | 1 | -0/+4 |
| | | | | | | | | | | | | | | | | | | | | subproperty | ||||
* | | | | | Merge pull request #1013 from mayuropensource/jinja-670-sort-multi-attr | Kevin Brown | 2019-06-24 | 1 | -0/+33 |
|\ \ \ \ \ | | | | | | | | | | | | | Add ability to specify multiple attributes in sort | ||||
| * | | | | | Add ability to specify multiple attributes in sort, | mayur-srivastava | 2019-05-31 | 1 | -0/+33 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | e.g. foo|sort(attribute='name,id'). This fixes #670 | ||||
* | | | | | | Added new method itervalues() to LRUCache and deprecated itervalue() | gokcegrbl | 2019-05-31 | 1 | -0/+21 |
|/ / / / / | | | | | | | | | | | | | | | | (Fixes pallets/jinja#999) | ||||
* | | | | | Remove duplicated testcase | Flex Ferrum | 2019-05-16 | 1 | -2/+0 |
|/ / / / | |||||
* | | | | Add ChainableUndefined allowing getattr & getitem (#997) | Étienne Pelletier | 2019-05-08 | 1 | -2/+23 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * Add ChainableUndefined allowing getattr & getitem Allows using default values with chains of items or attributes that may contain undefined values without raising a jinja2.exceptions.UndefinedError. >>> import jinja2 >>> env = jinja2.Environment(undefined=jinja2.ChainableUndefined) >>> env.from_string("{{ foo.bar['baz'] | default('val') }}").render() 'val' * Remove class decorator from ChainableUndefined | ||||
* | | | | Merge branch '2.10.x' | David Lord | 2019-04-06 | 1 | -0/+19 |
|\ \ \ \ | |/ / / | |||||
| * | | | sandbox str.format_map | Armin Ronacher | 2019-04-06 | 1 | -0/+19 |
| | | | | |||||
* | | | | Await in async version of the map filter (#913) | seaders | 2019-02-18 | 2 | -0/+9 |
| |/ / |/| | |