summaryrefslogtreecommitdiff
path: root/jinja2/runtime.py
Commit message (Collapse)AuthorAgeFilesLines
* Fix custom contexts in fast resolve modeAdrian Moennich2017-03-151-1/+3
| | | | closes #675
* Fixed async macro autoescape. Fixes #671Armin Ronacher2017-01-281-0/+4
|
* Add support back for custom resolves on old resolve methodArmin Ronacher2017-01-121-10/+58
|
* Fixed some string literal warnings. Fixes #646Armin Ronacher2017-01-081-1/+1
|
* Support new scoping rules in scoped blocksArmin Ronacher2017-01-081-3/+5
|
* Add support for explicit callersArmin Ronacher2017-01-081-1/+15
| | | | | | | | | This adds support for a never intended Jinja2 feature which however worked in limited support before due to a bug with the identifier scoping. A quick github code search indicates that developers commonly did this to set the default caller to none. This fixes #642
* Bump up the copyright to 2017Armin Ronacher2017-01-071-1/+1
|
* Generalize scoping. This fixes #603Armin Ronacher2017-01-071-2/+7
|
* Fixed self references in macrosArmin Ronacher2017-01-061-1/+3
|
* Set macro autoescape behavior at call instead of compile time. Fixes #565Armin Ronacher2017-01-061-3/+35
|
* Do not emit make_logging_undefined to runtimeArmin Ronacher2017-01-051-1/+1
|
* Changed behavior of macro defaults to be frame boundArmin Ronacher2017-01-031-7/+2
|
* First pass on integrating id trackingArmin Ronacher2017-01-031-6/+13
|
* Changelog and __rsub__ handlingArmin Ronacher2017-01-031-1/+1
|
* Merge pull request #530 from nick-garcia/masterArmin Ronacher2017-01-031-1/+1
|\ | | | | Subtraction from Undefined does not raise UndefinedError
| * Setting __sub__ equal to _fail_with_undefined_error so subtractions withNick Garcia2016-01-071-1/+1
| | | | | | | | undefined variables will fail properly like other arithemtic operations.
* | Support the same set of loop functions for async modeArmin Ronacher2016-12-281-24/+24
| |
* | Added support for async loop contextArmin Ronacher2016-12-281-12/+21
|/
* Let the Environment override the ContextThiefMaster2015-04-061-1/+2
| | | | closes #404
* Fix doctestsMarkus Unterwaditzer2015-03-221-7/+7
| | | | Fix #427
* Fixed a Python 3 regression.Armin Ronacher2014-06-061-10/+16
|
* Added tests for logging undefined and added it to the docs.Armin Ronacher2014-06-061-18/+61
|
* Added support for logging of undefined objects.Armin Ronacher2014-06-061-6/+41
| | | | | | fixup! fixup!
* Fix loop context length calculation for iterators. Fixes #244Christoph Reiter2014-03-301-2/+3
| | | | | This resulted in wrong values for revindex and revindex0 while looping over an iterator.
* Merge branch '2.7-maintenance'Armin Ronacher2013-08-071-1/+11
|\
| * Fixed warnings if Python is run with -3.Armin Ronacher2013-08-071-1/+11
| | | | | | | | | | | | | | This also adds proper hashing and comparision support to undefined objects. This fixes #224
* | Since we no longer support 2.5 we can use the builtin next() functionArmin Ronacher2013-05-201-1/+1
|/
* Documented loop.depth and added loop.depth0.Armin Ronacher2013-05-201-2/+4
|
* feature to version check for context dict methodsArmin Ronacher2013-05-201-2/+2
|
* Removed an unnecessary checkArmin Ronacher2013-05-201-8/+7
|
* Make the runtime leak less of the version hacksArmin Ronacher2013-05-201-13/+13
|
* Added unicode mixin for unified string logicArmin Ronacher2013-05-191-17/+3
|
* PY3 -> PY2 macroArmin Ronacher2013-05-191-7/+7
|
* Moved all six usages (ignoring testsuite) into jinja2._compatArmin Ronacher2013-05-191-19/+24
|
* six.advance_iterator -> nextArmin Ronacher2013-05-191-1/+2
|
* Merge branch 'master' into sprint-branchArmin Ronacher2013-05-181-0/+11
|\
| * Cleanup and changelog entry for new contextfunction behaviorArmin Ronacher2013-05-181-5/+5
| |
| * - Allow callable classes to have contextfunction and the likeRichard Eames2013-04-151-0/+11
| |
* | Remove unused importsDaniel Neuhäuser2013-05-181-2/+2
| |
* | python 3 port: manual fixes, remove 2to3 from setup.py, remove fixersThomas Waldmann2013-05-181-14/+19
| |
* | python 3 port: automated changes by a slightly modified python-modernizeThomas Waldmann2013-05-171-4/+5
|/ | | | (replacing unicode with six.text_type, but not replacing u"" by six.u(""))
* Added changelog entry for #92 and changed LoopContext.End to _last_iterationArmin Ronacher2012-01-251-5/+6
|
* Fixed loop.last to not consume the entire iterator to determine if this isJason Kotenko2012-01-241-2/+14
| | | | the last iteration of the loop.
* Removed dead code.jason kirtland2011-04-251-2/+0
|
* join now also accepts parametersArmin Ronacher2011-01-241-1/+0
|
* Fixed imports with scoped blocksArmin Ronacher2010-12-221-0/+1
|
* Undefineds now support attribute errors for special attributes. This fixes #6Armin Ronacher2010-11-191-2/+8
|
* Calls to functions in templates are now intercepted for StopIteration.Armin Ronacher2010-06-051-11/+20
| | | | | | | Improved performance of macro call slightly. --HG-- branch : trunk
* Next try for a Python 3 fixArmin Ronacher2010-05-291-4/+1
| | | | | --HG-- branch : trunk
* Fixed a Python 3 bug.Armin Ronacher2010-05-291-0/+3
| | | | | --HG-- branch : trunk