Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
* | | | | | | | | | Test sync and async generator | Armin Ronacher | 2016-12-29 | 1 | -6/+8 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added reject/rejectattr with basic async support | Armin Ronacher | 2016-12-29 | 3 | -7/+48 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Made join filter work with async | Armin Ronacher | 2016-12-28 | 2 | -2/+37 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Restructured tests for async filters | Armin Ronacher | 2016-12-28 | 1 | -17/+24 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Made groupby work with async | Armin Ronacher | 2016-12-28 | 2 | -10/+80 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Improved internal async filter framework | Armin Ronacher | 2016-12-28 | 1 | -10/+34 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added note for async from filter calls | Armin Ronacher | 2016-12-28 | 1 | -0/+5 | |
| | | | | | | | | | ||||||
* | | | | | | | | | First pass on async support for filters | Armin Ronacher | 2016-12-28 | 6 | -3/+71 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Made the env._async property public for filters | Armin Ronacher | 2016-12-28 | 3 | -30/+30 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Started doc work for async | Armin Ronacher | 2016-12-28 | 1 | -0/+40 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Make tests pass on older python versions again | Armin Ronacher | 2016-12-28 | 2 | -11/+7 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Support the same set of loop functions for async mode | Armin Ronacher | 2016-12-28 | 5 | -38/+258 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Improved wrapper code so that the API is more consistent on failure | Armin Ronacher | 2016-12-28 | 2 | -6/+36 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Fixed error message | Armin Ronacher | 2016-12-28 | 1 | -1/+1 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added support for async loop context | Armin Ronacher | 2016-12-28 | 4 | -17/+87 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added basic support for async iter | Armin Ronacher | 2016-12-28 | 3 | -2/+34 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Wrap generate to support async mode | Armin Ronacher | 2016-12-28 | 2 | -0/+37 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Auto skip async tests for imports | Armin Ronacher | 2016-12-28 | 1 | -0/+2 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added tests for async functionality with imports and includes | Armin Ronacher | 2016-12-28 | 4 | -25/+156 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added untested support for imports and includes in async mode | Armin Ronacher | 2016-12-28 | 3 | -7/+24 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Use more _get_default_module calls | Armin Ronacher | 2016-12-28 | 2 | -5/+8 | |
| | | | | | | | | | ||||||
* | | | | | | | | | First pass on implementing async default module | Armin Ronacher | 2016-12-28 | 2 | -2/+39 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Switch to short traceback | Armin Ronacher | 2016-12-28 | 1 | -1/+1 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Rewrap | Armin Ronacher | 2016-12-28 | 1 | -1/+2 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Stop use of .module in generated code | Armin Ronacher | 2016-12-28 | 2 | -5/+8 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Restore original render func for non async usage | Armin Ronacher | 2016-12-28 | 2 | -1/+20 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Basic async support for blocks | Armin Ronacher | 2016-12-28 | 3 | -9/+49 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Updated setup.cfg for pytest | Armin Ronacher | 2016-12-28 | 1 | -2/+2 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Improved async test | Armin Ronacher | 2016-12-28 | 1 | -4/+7 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added test for macro async support | Armin Ronacher | 2016-12-28 | 1 | -0/+12 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Automatically await on function calls if necessary | Armin Ronacher | 2016-12-28 | 3 | -0/+35 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Initial support for async rendering | Armin Ronacher | 2016-12-28 | 6 | -12/+95 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Add async flags | Armin Ronacher | 2016-12-28 | 2 | -3/+19 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Fixed long standing wrong operator precedence | Armin Ronacher | 2016-12-28 | 3 | -52/+29 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Updated gitignore to include venvs | Armin Ronacher | 2016-12-28 | 1 | -0/+2 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Added a test for generator_stop | Armin Ronacher | 2016-12-28 | 1 | -0/+16 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Restrict where we collect tests | Armin Ronacher | 2016-12-27 | 1 | -1/+1 | |
| | | | | | | | | | ||||||
* | | | | | | | | | Merge branch 'master' of github.com:mitsuhiko/jinja2 | Armin Ronacher | 2016-12-27 | 24 | -134/+177 | |
|\ \ \ \ \ \ \ \ \ | ||||||
| * | | | | | | | | | Uses re.compile flags argument, not inline flags (#628) | jfinkels | 2016-12-25 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This commit replaces the use of terminal inline flags in a regular expression in `re.compile`, re.compile(r'\w+(?u)') with arguments to the `re.compile` function itself, re.compile(r'\w+', re.UNICODE) because the former is deprecated as of Python 3.6. | |||||
| * | | | | | | | | | Fix typos in CHANGES (#626) | Andrew Arendt | 2016-12-14 | 1 | -4/+4 | |
| | | | | | | | | | | ||||||
| * | | | | | | | | | Add license_file to setup.cfg metadata (#609) | Philippe Ombredanne | 2016-11-01 | 1 | -0/+3 | |
| | |_|_|_|/ / / / | |/| | | | | | | | | | | | | | | | | | | | | | | | | | Without this, the LICENSE file is never included in the built wheels: this makes it harder for users to comply with the license. With this addition a file LICENSE.txt will be created in the `xxx.dist-info` directory with the content of the `license_file` file, e.g. the top level LICENSE. | |||||
| * | | | | | | | | Fix typo in clear_caches docstring | Marcelo Jorge Vieira | 2016-09-09 | 1 | -1/+1 | |
| | | | | | | | | | ||||||
| * | | | | | | | | Fixed typo in jinja2/loaders.py (#606) | Marcelo Jorge Vieira | 2016-09-02 | 1 | -2/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced 'fileame' with 'filename' | |||||
| * | | | | | | | | Added a GitHub issue template (#599) | Francisco Jiménez Cabrera | 2016-07-19 | 1 | -0/+2 | |
| | | | | | | | | | ||||||
| * | | | | | | | | Clarified and extended the docs for the `{select|reject}[attr]` filters. (#231) | Jochen Kupperschmidt | 2016-05-30 | 1 | -8/+20 | |
| | | | | | | | | | ||||||
| * | | | | | | | | Merge pull request #585 from pgjones/master | Jeff Widman | 2016-05-23 | 2 | -4/+7 | |
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Change environment cache key construction | |||||
| | * | | | | | | | | Change environment cache key construction | pgjones | 2016-05-21 | 2 | -4/+7 | |
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changing from a tuple of the loader ID and template name to a weakref to the loader and the template name should avoid situations whereby the loader has changed, yet the cached templates are returned. This would occur if the id of the new loader matches the old. A weakref is preferred over a direct reference so that the loader can be garbaged collected. | |||||
| * | | | | | | | | Merge branch 'pgjones-master' | Markus Unterwaditzer | 2016-05-19 | 3 | -17/+29 | |
| |\ \ \ \ \ \ \ \ | ||||||
| | * | | | | | | | | Changelog for #583 | Markus Unterwaditzer | 2016-05-19 | 1 | -0/+8 | |
| | | | | | | | | | | ||||||
| | * | | | | | | | | Change cache key definitiion in environment | pgjones | 2016-05-19 | 2 | -17/+21 | |
| |/ / / / / / / / | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | In 6671b973e6de5abc46829a27fd3bbb989d68ca3a the load_template method was altered to use a cache key other than the template name. The key chosen was the abs path as returned from the loader get_source method. Unless there is no path in which case the name is used. Unfortunately this introduced a performance regression, #485, as the get_source method (in the FileStoreLoader) loads the template (causing IO). The purpose of #332 was to allow the loader to change whilst ensuring the correct template was loaded, i.e. to fix this case env.loader = loader1 env.get_template('index.html') # return loader1/index.html env.loader = loader2 env.get_template('index.html') # also return loader1/index.html because of cache This commit changes the cache key to be a tuple of the id(loader) and the template name. Therefore fixing the above case without calling the get_source method and thereby avoiding the IO load. A test has been added to ensure the above case works as expected, this required a minor refactor of the caching tests. |