]> git.ipfire.org Git - thirdparty/jinja.git/commit
Add support for the Environment to optionally return native types.
authorJames Tanner <tanner.jc@gmail.com>
Thu, 27 Apr 2017 21:14:42 +0000 (17:14 -0400)
committerDavid Lord <davidism@gmail.com>
Thu, 6 Jul 2017 21:26:09 +0000 (14:26 -0700)
commit40bc44c9943920190079e6339ef10e6702c1c898
tree543c84d4c3e5f31b71212a6f7be5b9d8a9127911
parentca1abd46bd8ab7f2034f293640b89aeca6beabdc
Add support for the Environment to optionally return native types.

This works by having an alternate CodeGenerator that avoids doing to_string
after the yield statement and a new version of concat that handles the returned
generator with a bit more "intelligence".
CHANGES
docs/contents.rst.inc
docs/nativetypes.rst [new file with mode: 0644]
jinja2/nativetypes.py [new file with mode: 0644]
tests/test_nativetypes.py [new file with mode: 0644]