summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* | | | | | | | | Test sync and async generatorArmin Ronacher2016-12-291-6/+8
| | | | | | | | |
* | | | | | | | | Added reject/rejectattr with basic async supportArmin Ronacher2016-12-293-7/+48
| | | | | | | | |
* | | | | | | | | Made join filter work with asyncArmin Ronacher2016-12-282-2/+37
| | | | | | | | |
* | | | | | | | | Restructured tests for async filtersArmin Ronacher2016-12-281-17/+24
| | | | | | | | |
* | | | | | | | | Made groupby work with asyncArmin Ronacher2016-12-282-10/+80
| | | | | | | | |
* | | | | | | | | Improved internal async filter frameworkArmin Ronacher2016-12-281-10/+34
| | | | | | | | |
* | | | | | | | | Added note for async from filter callsArmin Ronacher2016-12-281-0/+5
| | | | | | | | |
* | | | | | | | | First pass on async support for filtersArmin Ronacher2016-12-286-3/+71
| | | | | | | | |
* | | | | | | | | Made the env._async property public for filtersArmin Ronacher2016-12-283-30/+30
| | | | | | | | |
* | | | | | | | | Started doc work for asyncArmin Ronacher2016-12-281-0/+40
| | | | | | | | |
* | | | | | | | | Make tests pass on older python versions againArmin Ronacher2016-12-282-11/+7
| | | | | | | | |
* | | | | | | | | Support the same set of loop functions for async modeArmin Ronacher2016-12-285-38/+258
| | | | | | | | |
* | | | | | | | | Improved wrapper code so that the API is more consistent on failureArmin Ronacher2016-12-282-6/+36
| | | | | | | | |
* | | | | | | | | Fixed error messageArmin Ronacher2016-12-281-1/+1
| | | | | | | | |
* | | | | | | | | Added support for async loop contextArmin Ronacher2016-12-284-17/+87
| | | | | | | | |
* | | | | | | | | Added basic support for async iterArmin Ronacher2016-12-283-2/+34
| | | | | | | | |
* | | | | | | | | Wrap generate to support async modeArmin Ronacher2016-12-282-0/+37
| | | | | | | | |
* | | | | | | | | Auto skip async tests for importsArmin Ronacher2016-12-281-0/+2
| | | | | | | | |
* | | | | | | | | Added tests for async functionality with imports and includesArmin Ronacher2016-12-284-25/+156
| | | | | | | | |
* | | | | | | | | Added untested support for imports and includes in async modeArmin Ronacher2016-12-283-7/+24
| | | | | | | | |
* | | | | | | | | Use more _get_default_module callsArmin Ronacher2016-12-282-5/+8
| | | | | | | | |
* | | | | | | | | First pass on implementing async default moduleArmin Ronacher2016-12-282-2/+39
| | | | | | | | |
* | | | | | | | | Switch to short tracebackArmin Ronacher2016-12-281-1/+1
| | | | | | | | |
* | | | | | | | | RewrapArmin Ronacher2016-12-281-1/+2
| | | | | | | | |
* | | | | | | | | Stop use of .module in generated codeArmin Ronacher2016-12-282-5/+8
| | | | | | | | |
* | | | | | | | | Restore original render func for non async usageArmin Ronacher2016-12-282-1/+20
| | | | | | | | |
* | | | | | | | | Basic async support for blocksArmin Ronacher2016-12-283-9/+49
| | | | | | | | |
* | | | | | | | | Updated setup.cfg for pytestArmin Ronacher2016-12-281-2/+2
| | | | | | | | |
* | | | | | | | | Improved async testArmin Ronacher2016-12-281-4/+7
| | | | | | | | |
* | | | | | | | | Added test for macro async supportArmin Ronacher2016-12-281-0/+12
| | | | | | | | |
* | | | | | | | | Automatically await on function calls if necessaryArmin Ronacher2016-12-283-0/+35
| | | | | | | | |
* | | | | | | | | Initial support for async renderingArmin Ronacher2016-12-286-12/+95
| | | | | | | | |
* | | | | | | | | Add async flagsArmin Ronacher2016-12-282-3/+19
| | | | | | | | |
* | | | | | | | | Fixed long standing wrong operator precedenceArmin Ronacher2016-12-283-52/+29
| | | | | | | | |
* | | | | | | | | Updated gitignore to include venvsArmin Ronacher2016-12-281-0/+2
| | | | | | | | |
* | | | | | | | | Added a test for generator_stopArmin Ronacher2016-12-281-0/+16
| | | | | | | | |
* | | | | | | | | Restrict where we collect testsArmin Ronacher2016-12-271-1/+1
| | | | | | | | |
* | | | | | | | | Merge branch 'master' of github.com:mitsuhiko/jinja2Armin Ronacher2016-12-2724-134/+177
|\ \ \ \ \ \ \ \ \
| * | | | | | | | | Uses re.compile flags argument, not inline flags (#628)jfinkels2016-12-251-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 Arendt2016-12-141-4/+4
| | | | | | | | | |
| * | | | | | | | | Add license_file to setup.cfg metadata (#609)Philippe Ombredanne2016-11-011-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 docstringMarcelo Jorge Vieira2016-09-091-1/+1
| | | | | | | | |
| * | | | | | | | Fixed typo in jinja2/loaders.py (#606)Marcelo Jorge Vieira2016-09-021-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | Replaced 'fileame' with 'filename'
| * | | | | | | | Added a GitHub issue template (#599)Francisco Jiménez Cabrera2016-07-191-0/+2
| | | | | | | | |
| * | | | | | | | Clarified and extended the docs for the `{select|reject}[attr]` filters. (#231)Jochen Kupperschmidt2016-05-301-8/+20
| | | | | | | | |
| * | | | | | | | Merge pull request #585 from pgjones/masterJeff Widman2016-05-232-4/+7
| |\ \ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Change environment cache key construction
| | * | | | | | | | Change environment cache key constructionpgjones2016-05-212-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 Unterwaditzer2016-05-193-17/+29
| |\ \ \ \ \ \ \ \
| | * | | | | | | | Changelog for #583Markus Unterwaditzer2016-05-191-0/+8
| | | | | | | | | |
| | * | | | | | | | Change cache key definitiion in environmentpgjones2016-05-192-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.