Commit message (Collapse) | Author | Age | Files | Lines | ||
---|---|---|---|---|---|---|
... | ||||||
| | * | | | | | | | Added tests for async functionality with imports and includes | Armin Ronacher | 2016-12-28 | 3 | -18/+14 | |
| | | | | | | | | | ||||||
| | * | | | | | | | 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 | |
| | | | | | | | | | ||||||
| | * | | | | | | | 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 | 1 | -1/+1 | |
| | | | | | | | | | ||||||
| | * | | | | | | | Basic async support for blocks | Armin Ronacher | 2016-12-28 | 2 | -9/+38 | |
| | | | | | | | | | ||||||
| | * | | | | | | | Automatically await on function calls if necessary | Armin Ronacher | 2016-12-28 | 2 | -0/+14 | |
| | | | | | | | | | ||||||
| | * | | | | | | | Initial support for async rendering | Armin Ronacher | 2016-12-28 | 5 | -12/+74 | |
| | | | | | | | | | ||||||
| | * | | | | | | | Add async flags | Armin Ronacher | 2016-12-28 | 2 | -3/+19 | |
| | | | | | | | | | ||||||
| | * | | | | | | | Fixed long standing wrong operator precedence | Armin Ronacher | 2016-12-28 | 1 | -52/+23 | |
| | | | | | | | | | ||||||
| | * | | | | | | | Merge branch 'master' of github.com:mitsuhiko/jinja2 | Armin Ronacher | 2016-12-27 | 5 | -73/+69 | |
| | |\ \ \ \ \ \ \ | ||||||
| | | * | | | | | | | 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 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' | |||||
| | | * | | | | | | Clarified and extended the docs for the `{select|reject}[attr]` filters. (#231) | Jochen Kupperschmidt | 2016-05-30 | 1 | -8/+20 | |
| | | | | | | | | | ||||||
| | | * | | | | | | Change environment cache key construction | pgjones | 2016-05-21 | 1 | -1/+2 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
| | | * | | | | | | Change cache key definitiion in environment | pgjones | 2016-05-19 | 1 | -9/+1 | |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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. | |||||
| | | * | | | | | | use double ticks for code in rst | David Lord | 2016-05-02 | 1 | -5/+5 | |
| | | | | | | | | | ||||||
| | | * | | | | | | Use constant name in doc (fixes #544) | Raphael Boidol | 2016-05-01 | 1 | -1/+1 | |
| | | | | | | | | | ||||||
| | | * | | | | | | Merge pull request #439 from jgmize/title-filter-capitalize-inside-parens | Jeff Widman | 2016-04-15 | 1 | -6/+5 | |
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | Make title filter capitalize words inside parens and other brackets | |||||
| | | | * | | | | | | Make title filter capitalize words in (),{},[],<> | Josh Mize | 2015-04-08 | 1 | -6/+5 | |
| | | | | | | | | | | ||||||
| | | * | | | | | | | Merge pull request #473 from snoack/redundant-sorting | Jeff Widman | 2016-04-15 | 1 | -12/+4 | |
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | Got rid of redundant sorting in groupby filter | |||||
| | | | * | | | | | | | Got rid of redundant sorting in groupby filter | Sebastian Noack | 2015-08-07 | 1 | -12/+4 | |
| | | | | |_|_|_|_|/ | | | | |/| | | | | | ||||||
| | | * | | | | | | | Merge pull request #470 from snoack/partial-next | Jeff Widman | 2016-04-14 | 2 | -26/+23 | |
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | | Use partial(next, ...) instead get_next() | |||||
| | | | * | | | | | | | Use partial(next, ...) instead get_next() | Sebastian Noack | 2015-08-10 | 2 | -26/+23 | |
| | | | | | | | | | | | ||||||
| | | * | | | | | | | | Merge branch '2.8-maintenance' | Markus Unterwaditzer | 2016-04-12 | 1 | -1/+4 | |
| | | |\ \ \ \ \ \ \ \ | | | | | |_|_|_|/ / / | | | | |/| | | | | | | ||||||
| | | | * | | | | | | | Fixed int() filter for non-string objects #466 | Sebastian Noack | 2016-04-12 | 1 | -1/+4 | |
| | | | | |_|_|/ / / | | | | |/| | | | | | ||||||
| | | * | | | | | | | Escape target attribute in the urlize function in utils.py. (#507) | Sambhav Satija | 2016-04-10 | 1 | -1/+1 | |
| | | | |_|_|_|_|/ | | | |/| | | | | | ||||||
| | | * | | | | | | Fix typo. | Markus Amalthea Magnuson | 2015-12-28 | 1 | -1/+1 | |
| | | | |_|_|_|/ | | | |/| | | | | ||||||
| | * | | | | | | Added support for generator_stop | Armin Ronacher | 2016-12-27 | 1 | -1/+10 | |
| | |/ / / / / | ||||||
| | * | | | | | Merge branch '2.8-maintenance' | Armin Ronacher | 2015-11-20 | 1 | -1/+1 | |
| | |\ \ \ \ \ | | | |/ / / / | ||||||
| | | * | | | | Fixed for_qs for urlencode. This fixes #515 | Armin Ronacher | 2015-11-20 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | | * | | | | This is 2.8.1-dev | Armin Ronacher | 2015-11-20 | 1 | -1/+1 | |
| | | | | | | | ||||||
| | * | | | | | Fixed a few spelling mistakes in a docstring | Luke Plant | 2015-11-14 | 1 | -2/+2 | |
| | | |_|/ / | | |/| | | | ||||||
| * | | | | | Prevent random filter from being inlined | Sebastian Noack | 2015-08-10 | 1 | -5/+5 | |
| |/ / / / | ||||||
| * | | | | Improve with_metaclass() | Sebastian Noack | 2015-08-05 | 1 | -14/+5 | |
| | |/ / | |/| | | ||||||
* | | | | Added unique filter | Sebastian Noack | 2015-08-10 | 1 | -19/+56 | |
|/ / / | ||||||
* | | | This is 2.9.dev | Armin Ronacher | 2015-07-26 | 1 | -1/+1 | |
|/ / | ||||||
* | | Bump version number to 2.82.8 | Armin Ronacher | 2015-07-26 | 1 | -1/+1 | |
| | | ||||||
* | | Fix typo: "the iterates" > "that iterates" | Steven Maude | 2015-07-11 | 1 | -1/+1 | |
| | | | | | | In filters.py. | |||||
* | | Fix syntax error | Markus Unterwaditzer | 2015-06-01 | 1 | -1/+1 | |
| | | ||||||
* | | Merge pull request #447 from bentimms/int-filter-base | Markus Unterwaditzer | 2015-06-01 | 1 | -3/+6 | |
|\ \ | | | | | | | Add 'base' parameter to 'int' filter | |||||
| * | | Add 'base' parameter to 'int' filter | Ben Timms | 2015-04-29 | 1 | -3/+6 | |
| |/ | ||||||
* | | Sort filters, remove dupes | Markus Unterwaditzer | 2015-06-01 | 1 | -36/+34 | |
| | | | | | | | | Fix #454 | |||||
* | | Fix typo | Éric Araujo | 2015-06-01 | 1 | -1/+1 | |
| | | ||||||
* | | Escape slashes in query strings. This fixes #445 | Armin Ronacher | 2015-05-25 | 2 | -3/+8 | |
| | | ||||||
* | | Merge branch 'pr/451' | Armin Ronacher | 2015-05-25 | 1 | -11/+24 | |
|\ \ | ||||||
| * | | fix the fancy tracebacks on Python 3 | Antti Haapala | 2015-05-10 | 1 | -11/+24 | |
| |/ |