Age | Commit message (Collapse) | Author | |
---|---|---|---|
2016-12-28 | Auto skip async tests for imports | Armin Ronacher | |
2016-12-28 | Added tests for async functionality with imports and includes | Armin Ronacher | |
2016-12-28 | Restore original render func for non async usage | Armin Ronacher | |
2016-12-28 | Basic async support for blocks | Armin Ronacher | |
2016-12-28 | Improved async test | Armin Ronacher | |
2016-12-28 | Added test for macro async support | Armin Ronacher | |
2016-12-28 | Automatically await on function calls if necessary | Armin Ronacher | |
2016-12-28 | Initial support for async rendering | Armin Ronacher | |
2016-12-28 | Fixed long standing wrong operator precedence | Armin Ronacher | |
2016-12-28 | Added a test for generator_stop | Armin Ronacher | |
2016-09-24 | Fix and improve do_truncate | jab | |
- Ensure that the requested max length be at least as long as the requested `end` value (e.g. 3 in the case of '...'). Fixes #539 - Add `leeway` parameter so that strings that just barely miss the requested max length cutoff can still be spared from unwanted truncation. Default value is 5. - No longer append a space before appending `end` under any circumstances. Adding whitespace before ellipsis punctuation in English is grammatically incorrect. | |||
2016-05-21 | Change environment cache key construction | pgjones | |
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. | |||
2016-05-19 | Change cache key definitiion in environment | pgjones | |
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. | |||
2016-04-15 | Merge pull request #439 from jgmize/title-filter-capitalize-inside-parens | Jeff Widman | |
Make title filter capitalize words inside parens and other brackets | |||
2016-04-12 | Merge branch '2.8-maintenance' | Markus Unterwaditzer | |
2016-04-12 | Fixed int() filter for non-string objects #466 | Sebastian Noack | |
2016-04-11 | standard tox/travis config | David Lord | |
fix pytest warning, don't prefix non-testcase classes with Test | |||
2016-04-10 | Escape target attribute in the urlize function in utils.py. (#507) | Sambhav Satija | |
2016-01-07 | Setting __sub__ equal to _fail_with_undefined_error so subtractions with | Nick Garcia | |
undefined variables will fail properly like other arithemtic operations. | |||
2015-12-29 | Give Cycler a next() method so that it works in python2 and 3 | Matt Haggard | |
2015-04-29 | Add 'base' parameter to 'int' filter | Ben Timms | |
2015-04-08 | Make title filter capitalize words in (),{},[],<> | Josh Mize | |
2015-04-06 | Let the Environment override the Context | ThiefMaster | |
closes #404 | |||
2015-04-06 | Let the Environment override the CodeGenerator | ThiefMaster | |
see #404 | |||
2015-03-22 | Rename testsuite to tests and suggestions | Kartheek Lenkala | |
Remove py.test from setup.py install_requires Rename testsuite folder to tests. | |||
2010-02-09 | Removed old testsuite. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-02-09 | PrefixLoader raises correct error message now. This fixes #358. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-02-07 | added with-statement extension. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-02-07 | Improved test invokation. Picks up doctests within Jinja now, changed | Armin Ronacher | |
doctests that just show usage that would not work on their own so that they are standard code blocks now and do not disturb testing. --HG-- branch : trunk | |||
2010-02-07 | Further error message improvement, this time for #341. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-02-07 | Fixed bug in a testcase. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-02-06 | Added a testcase for #363. This bug was fixed along the way. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-02-06 | added support for translator comments if extracted via babel. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-02-06 | implicit tuple expressions can no longer be totally empty. | Armin Ronacher | |
This change makes ``{% if %}...{% endif %}`` a syntax error now. (#364) --HG-- branch : trunk | |||
2010-02-06 | greatly improved error message reporting. This fixes #339 | Armin Ronacher | |
--HG-- branch : trunk extra : rebase_source : d8f677273490fa73d5603b68478fa3b54f60ccb9 | |||
2010-01-14 | fixed a problem with having call blocks in outer scopes that | Armin Ronacher | |
have an argument that is also used as local variable in an inner frame [#360]. --HG-- branch : trunk | |||
2010-01-14 | Just to be on the sure side with that compiler optimization magic | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-01-14 | Fixed the choice include tests. | Armin Ronacher | |
--HG-- branch : trunk | |||
2010-01-14 | include tags are now able to select between multiple templates | Armin Ronacher | |
and take the first that exists, if a list of templates is given. --HG-- branch : trunk | |||
2009-10-26 | Reverted [73b04625ab54]. The old behavior is the new behavior, the other | Armin Ronacher | |
is not consistenly implementable. --HG-- branch : trunk | |||
2009-10-25 | Fixed a scoping bug that was introduced in the development version and was | Armin Ronacher | |
triggered by multiple layers of local variables not tracked properly in if statements. --HG-- branch : trunk | |||
2009-09-18 | added a deprecation warning for a variable assignment, scope bug | Armin Ronacher | |
that exists since 2.0, code could depend on. See :ref:`jinja-scoping-bug` for more information on this problem. Tip is 2.3 as this will be the next release (will happen soon!) --HG-- branch : trunk | |||
2009-09-17 | fixes issue with code generator that causes unbound variables | Armin Ronacher | |
to be generated if set was used in if-blocks. --HG-- branch : trunk | |||
2009-09-14 | fixes some smaller problems for Jinja2 on Jython. | Armin Ronacher | |
--HG-- branch : trunk | |||
2009-09-12 | Added ugly workaround for a loop bug. | Armin Ronacher | |
--HG-- branch : trunk | |||
2009-07-26 | Added unittests for meta. | Armin Ronacher | |
--HG-- branch : trunk | |||
2009-07-26 | Got rid of py.testisms. | Armin Ronacher | |
--HG-- branch : trunk | |||
2009-04-20 | Support nose framework for the whole test suite. | Rene Leonhardt | |
--HG-- branch : trunk | |||
2009-04-01 | Added a testcase for the last change. | Armin Ronacher | |
--HG-- branch : trunk | |||
2009-04-01 | Fixed another bug with line comments | Armin Ronacher | |
--HG-- branch : trunk |