Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Merge pull request #673 from MrSenko/get_corresponding_lineno_traceback | David Lord | 2019-11-01 | 1 | -2/+4 |
|\ | | | | | handle template.get_corresponding_lineno() for lines without debug info | ||||
| * | Return empty list when debug_info is empty string | Mr. Senko | 2017-01-29 | 1 | -2/+4 |
| | | |||||
* | | compile writes utf8 | David Lord | 2019-10-28 | 1 | -7/+7 |
| | | |||||
* | | creating a NativeTemplate creates a NativeEnvironmentnative-template-env | David Lord | 2019-10-28 | 1 | -11/+18 |
| | | |||||
* | | use "Jinja" instead of "Jinja2" | David Lord | 2019-10-23 | 1 | -1/+1 |
| | | |||||
* | | Fix typos (#815) | luzpaz | 2018-02-18 | 1 | -1/+1 |
| | | | | | | Found via `codespell -q 3` using v1.12.0.dev0 | ||||
* | | Lazy asyncsupport.patch_all() | INADA Naoki | 2018-02-06 | 1 | -0/+2 |
| | | | | | | | | fixes #765 | ||||
* | | Minor docstring grammar fix (#772) | Eli Boyarski | 2017-09-18 | 1 | -1/+1 |
|/ | |||||
* | Bump up the copyright to 2017 | Armin Ronacher | 2017-01-07 | 1 | -1/+1 |
| | |||||
* | Fix various optimizer bugs. This fixes #548bugfix/inline-optmiize | Armin Ronacher | 2017-01-06 | 1 | -4/+2 |
| | |||||
* | Better error messages for some undefines. This fixes #575feature/no-locals | Armin Ronacher | 2017-01-06 | 1 | -2/+12 |
| | |||||
* | Support old-style classes for attribute lookups. Fixes #631 | Armin Ronacher | 2016-12-31 | 1 | -1/+1 |
| | |||||
* | Make noopener the default for urlize | Armin Ronacher | 2016-12-31 | 1 | -1/+4 |
| | |||||
* | Added note for async from filter calls | Armin Ronacher | 2016-12-28 | 1 | -0/+5 |
| | |||||
* | Made the env._async property public for filters | Armin Ronacher | 2016-12-28 | 1 | -2/+2 |
| | |||||
* | Support the same set of loop functions for async mode | Armin Ronacher | 2016-12-28 | 1 | -0/+18 |
| | |||||
* | Improved wrapper code so that the API is more consistent on failure | Armin Ronacher | 2016-12-28 | 1 | -0/+15 |
| | |||||
* | Added tests for async functionality with imports and includes | Armin Ronacher | 2016-12-28 | 1 | -4/+0 |
| | |||||
* | Added untested support for imports and includes in async mode | Armin Ronacher | 2016-12-28 | 1 | -0/+4 |
| | |||||
* | Use more _get_default_module calls | Armin Ronacher | 2016-12-28 | 1 | -1/+3 |
| | |||||
* | First pass on implementing async default module | Armin Ronacher | 2016-12-28 | 1 | -2/+8 |
| | |||||
* | Stop use of .module in generated code | Armin Ronacher | 2016-12-28 | 1 | -4/+7 |
| | |||||
* | Initial support for async rendering | Armin Ronacher | 2016-12-28 | 1 | -1/+2 |
| | |||||
* | Add async flags | Armin Ronacher | 2016-12-28 | 1 | -3/+12 |
| | |||||
* | 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 |
| | |||||
* | Use partial(next, ...) instead get_next() | Sebastian Noack | 2015-08-10 | 1 | -23/+23 |
| | |||||
* | Let the Environment override the Context | ThiefMaster | 2015-04-06 | 1 | -1/+5 |
| | | | | closes #404 | ||||
* | Let the Environment override the CodeGenerator | ThiefMaster | 2015-04-06 | 1 | -1/+5 |
| | | | | see #404 | ||||
* | Fix doctests | Markus Unterwaditzer | 2015-03-22 | 1 | -10/+9 |
| | | | | Fix #427 | ||||
* | Typo Fixed. | Abhishek Kumar Singh | 2015-03-07 | 1 | -1/+1 |
| | |||||
* | Increased cache size to 400. | Armin Ronacher | 2014-08-28 | 1 | -3/+6 |
| | |||||
* | Merge pull request #293 from carldunham/docfix | Armin Ronacher | 2014-06-06 | 1 | -1/+1 |
|\ | | | | | fixed some typos and clarifying | ||||
| * | fixed some typos and clarifying | Carl A Dunham | 2014-01-18 | 1 | -1/+1 |
| | | |||||
* | | Make sure filtering returns a list for template listing. | Armin Ronacher | 2014-06-06 | 1 | -1/+1 |
| | | |||||
* | | Merge pull request #319 from richierichrawr/master | Armin Ronacher | 2014-06-06 | 1 | -7/+7 |
|\ \ | | | | | | | Edit code comments for readability | ||||
| * | | Edit code comments for readability | richierichrawr | 2014-04-05 | 1 | -7/+7 |
| |/ | | | | | Changed a few things to make it more understandable | ||||
* | | Style cleanups in environment and a tiny bugfix. | Armin Ronacher | 2014-06-06 | 1 | -8/+9 |
| | | |||||
* | | Fixed issue #309 | Armin Ronacher | 2014-06-06 | 1 | -1/+3 |
| | | |||||
* | | better assignment | Wing | 2014-05-17 | 1 | -1/+1 |
| | | |||||
* | | check for if loader does not implement get_source() | Wing | 2014-05-17 | 1 | -2/+6 |
| | | |||||
* | | if template is not file, use name for cache key | Wing | 2014-05-17 | 1 | -1/+4 |
| | | |||||
* | | Update environment.py | Wing | 2014-05-17 | 1 | -1/+1 |
| | | |||||
* | | Update environment.py | Wing | 2014-05-17 | 1 | -1/+1 |
| | | |||||
* | | use abs path for cache key | Wing | 2014-05-17 | 1 | -2/+4 |
|/ | |||||
* | Fixed a bug with call_filter not working properly | Armin Ronacher | 2013-07-04 | 1 | -2/+2 |
| | |||||
* | Disable py_compile for Python 3 and pypy | Armin Ronacher | 2013-05-20 | 1 | -8/+15 |
| | |||||
* | More cleanup in the utils module | Armin Ronacher | 2013-05-20 | 1 | -5/+5 |
| |