summaryrefslogtreecommitdiff
path: root/jinja2
Commit message (Collapse)AuthorAgeFilesLines
...
| | * | | | | | | Added tests for async functionality with imports and includesArmin Ronacher2016-12-283-18/+14
| | | | | | | | |
| | * | | | | | | 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
| | | | | | | | |
| | * | | | | | | 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-281-1/+1
| | | | | | | | |
| | * | | | | | | Basic async support for blocksArmin Ronacher2016-12-282-9/+38
| | | | | | | | |
| | * | | | | | | Automatically await on function calls if necessaryArmin Ronacher2016-12-282-0/+14
| | | | | | | | |
| | * | | | | | | Initial support for async renderingArmin Ronacher2016-12-285-12/+74
| | | | | | | | |
| | * | | | | | | Add async flagsArmin Ronacher2016-12-282-3/+19
| | | | | | | | |
| | * | | | | | | Fixed long standing wrong operator precedenceArmin Ronacher2016-12-281-52/+23
| | | | | | | | |
| | * | | | | | | Merge branch 'master' of github.com:mitsuhiko/jinja2Armin Ronacher2016-12-275-73/+69
| | |\ \ \ \ \ \ \
| | | * | | | | | | 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 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'
| | | * | | | | | Clarified and extended the docs for the `{select|reject}[attr]` filters. (#231)Jochen Kupperschmidt2016-05-301-8/+20
| | | | | | | | |
| | | * | | | | | Change environment cache key constructionpgjones2016-05-211-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 environmentpgjones2016-05-191-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 rstDavid Lord2016-05-021-5/+5
| | | | | | | | |
| | | * | | | | | Use constant name in doc (fixes #544)Raphael Boidol2016-05-011-1/+1
| | | | | | | | |
| | | * | | | | | Merge pull request #439 from jgmize/title-filter-capitalize-inside-parensJeff Widman2016-04-151-6/+5
| | | |\ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | Make title filter capitalize words inside parens and other brackets
| | | | * | | | | | Make title filter capitalize words in (),{},[],<>Josh Mize2015-04-081-6/+5
| | | | | | | | | |
| | | * | | | | | | Merge pull request #473 from snoack/redundant-sortingJeff Widman2016-04-151-12/+4
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Got rid of redundant sorting in groupby filter
| | | | * | | | | | | Got rid of redundant sorting in groupby filterSebastian Noack2015-08-071-12/+4
| | | | | |_|_|_|_|/ | | | | |/| | | | |
| | | * | | | | | | Merge pull request #470 from snoack/partial-nextJeff Widman2016-04-142-26/+23
| | | |\ \ \ \ \ \ \ | | | | | | | | | | | | | | | | | | | | | | Use partial(next, ...) instead get_next()
| | | | * | | | | | | Use partial(next, ...) instead get_next()Sebastian Noack2015-08-102-26/+23
| | | | | | | | | | |
| | | * | | | | | | | Merge branch '2.8-maintenance'Markus Unterwaditzer2016-04-121-1/+4
| | | |\ \ \ \ \ \ \ \ | | | | | |_|_|_|/ / / | | | | |/| | | | | |
| | | | * | | | | | | Fixed int() filter for non-string objects #466Sebastian Noack2016-04-121-1/+4
| | | | | |_|_|/ / / | | | | |/| | | | |
| | | * | | | | | | Escape target attribute in the urlize function in utils.py. (#507)Sambhav Satija2016-04-101-1/+1
| | | | |_|_|_|_|/ | | | |/| | | | |
| | | * | | | | | Fix typo.Markus Amalthea Magnuson2015-12-281-1/+1
| | | | |_|_|_|/ | | | |/| | | |
| | * | | | | | Added support for generator_stopArmin Ronacher2016-12-271-1/+10
| | |/ / / / /
| | * | | | | Merge branch '2.8-maintenance'Armin Ronacher2015-11-201-1/+1
| | |\ \ \ \ \ | | | |/ / / /
| | | * | | | Fixed for_qs for urlencode. This fixes #515Armin Ronacher2015-11-201-1/+1
| | | | | | |
| | | * | | | This is 2.8.1-devArmin Ronacher2015-11-201-1/+1
| | | | | | |
| | * | | | | Fixed a few spelling mistakes in a docstringLuke Plant2015-11-141-2/+2
| | | |_|/ / | | |/| | |
| * | | | | Prevent random filter from being inlinedSebastian Noack2015-08-101-5/+5
| |/ / / /
| * | | | Improve with_metaclass()Sebastian Noack2015-08-051-14/+5
| | |/ / | |/| |
* | | | Added unique filterSebastian Noack2015-08-101-19/+56
|/ / /
* | | This is 2.9.devArmin Ronacher2015-07-261-1/+1
|/ /
* | Bump version number to 2.82.8Armin Ronacher2015-07-261-1/+1
| |
* | Fix typo: "the iterates" > "that iterates"Steven Maude2015-07-111-1/+1
| | | | | | In filters.py.
* | Fix syntax errorMarkus Unterwaditzer2015-06-011-1/+1
| |
* | Merge pull request #447 from bentimms/int-filter-baseMarkus Unterwaditzer2015-06-011-3/+6
|\ \ | | | | | | Add 'base' parameter to 'int' filter
| * | Add 'base' parameter to 'int' filterBen Timms2015-04-291-3/+6
| |/
* | Sort filters, remove dupesMarkus Unterwaditzer2015-06-011-36/+34
| | | | | | | | Fix #454
* | Fix typoÉric Araujo2015-06-011-1/+1
| |
* | Escape slashes in query strings. This fixes #445Armin Ronacher2015-05-252-3/+8
| |
* | Merge branch 'pr/451'Armin Ronacher2015-05-251-11/+24
|\ \
| * | fix the fancy tracebacks on Python 3Antti Haapala2015-05-101-11/+24
| |/