]>
git.ipfire.org Git - thirdparty/jinja.git/log
David Lord [Mon, 28 Oct 2019 16:39:37 +0000 (09:39 -0700)]
compile writes utf8
David Lord [Mon, 28 Oct 2019 16:06:00 +0000 (09:06 -0700)]
Merge pull request #1095 from pallets/native-template-env
creating a NativeTemplate creates a NativeEnvironment
David Lord [Mon, 28 Oct 2019 16:00:01 +0000 (09:00 -0700)]
creating a NativeTemplate creates a NativeEnvironment
David Lord [Mon, 28 Oct 2019 13:50:55 +0000 (06:50 -0700)]
Merge pull request #1093 from cclauss/print-function
Use print() function in both Python2 and Python 3
cclauss [Sun, 27 Oct 2019 12:05:59 +0000 (13:05 +0100)]
Use print() function in both Python2 and Python 3
David Lord [Thu, 24 Oct 2019 15:00:39 +0000 (08:00 -0700)]
Merge pull request #1090 from pallets/lrucache-copy
LRUCache.copy's queue methods point to the correct queue
David Lord [Thu, 24 Oct 2019 14:54:38 +0000 (07:54 -0700)]
don't create a third queue
Ryan Siemens [Mon, 23 Apr 2018 07:26:22 +0000 (00:26 -0700)]
LRUCache.copy initializes queue methods
David Lord [Wed, 23 Oct 2019 20:35:49 +0000 (13:35 -0700)]
use "Jinja" instead of "Jinja2"
David Lord [Wed, 23 Oct 2019 19:40:55 +0000 (12:40 -0700)]
Merge pull request #1087 from pallets/jinja-name
use "Jinja" instead of "Jinja2"
David Lord [Wed, 23 Oct 2019 19:29:46 +0000 (12:29 -0700)]
use "Jinja" instead of "Jinja2"
David Lord [Tue, 22 Oct 2019 20:33:24 +0000 (13:33 -0700)]
Merge pull request #1086 from pallets/native-string-literal
preserve quotes between nodes in native env
David Lord [Tue, 22 Oct 2019 19:52:59 +0000 (12:52 -0700)]
preserve quotes between nodes in native env
David Lord [Mon, 21 Oct 2019 14:41:01 +0000 (07:41 -0700)]
Merge pull request #1064 from alexwlchan/support-pathlib
Support paths created with pathlib in FileSystemLoader and ModuleLoader
David Lord [Mon, 21 Oct 2019 14:00:25 +0000 (07:00 -0700)]
use fspath instead of str
Alex Chan [Sun, 22 Sep 2019 07:56:46 +0000 (08:56 +0100)]
support pathlib in FileSystemLoader and ModuleLoader
David Lord [Sun, 20 Oct 2019 23:50:28 +0000 (16:50 -0700)]
Merge pull request #1085 from pallets/docs-cycler
clarify cycler.next() behavior
David Lord [Sun, 20 Oct 2019 23:42:14 +0000 (16:42 -0700)]
clarify cycler.next() behavior
David Lord [Sat, 19 Oct 2019 15:08:56 +0000 (08:08 -0700)]
Merge pull request #1084 from pallets/i18n-docs
clean up i18n documentation
David Lord [Sat, 19 Oct 2019 14:30:39 +0000 (07:30 -0700)]
clean up i18n documentation
explain enabling newstyle
organize newstyle advantages
mention escaping percent signs for formatting
mention marking format parameters as safe
fix newstyle ref
David Lord [Fri, 18 Oct 2019 19:25:27 +0000 (12:25 -0700)]
Merge pull request #1083 from pallets/docs-changes
Address various documentation requests
David Lord [Fri, 18 Oct 2019 19:19:03 +0000 (12:19 -0700)]
document equivalent generator expressions for filters
closes #1068
David Lord [Fri, 18 Oct 2019 19:03:02 +0000 (12:03 -0700)]
document how ContextReference relates to contextfunction
closes #762
David Lord [Fri, 18 Oct 2019 18:53:33 +0000 (11:53 -0700)]
document formatting methods in format filter
closes #566
David Lord [Fri, 18 Oct 2019 18:37:37 +0000 (11:37 -0700)]
document lack of file extension
closes #547
David Lord [Fri, 18 Oct 2019 18:31:00 +0000 (11:31 -0700)]
document behavior of block tag in if block
closes #423
David Lord [Fri, 18 Oct 2019 18:23:59 +0000 (11:23 -0700)]
format expression docs
David Lord [Fri, 18 Oct 2019 18:20:25 +0000 (11:20 -0700)]
improve docs about string methods in templates
closes #273
David Lord [Thu, 17 Oct 2019 18:17:24 +0000 (11:17 -0700)]
Merge pull request #1082 from pallets/pkgutil-loader
PackageLoader doesn't depend on setuptools
David Lord [Wed, 16 Oct 2019 20:23:36 +0000 (13:23 -0700)]
PackageLoader doesn't depend on setuptools
David Lord [Mon, 14 Oct 2019 16:16:59 +0000 (09:16 -0700)]
Merge pull request #993 from aayushuppal/loop_fix
Fix for Loop properties revindex and revindex0 still wrong in Jinja2 2.10 #794
aayushuppal [Mon, 6 May 2019 21:17:43 +0000 (17:17 -0400)]
fixing LoopContext, loops indexing and iterator length property
David Lord [Mon, 14 Oct 2019 14:03:03 +0000 (07:03 -0700)]
reformat changelog
David Lord [Sun, 13 Oct 2019 17:00:36 +0000 (10:00 -0700)]
Merge pull request #1079 from ThiefMaster/cond-expr-undefined
Use separate undefined object for else-less conditional expressions
Adrian Moennich [Sun, 13 Oct 2019 14:54:00 +0000 (16:54 +0200)]
Don't make cond_expr_undefined configurable
Adrian Moennich [Sat, 12 Oct 2019 14:18:34 +0000 (16:18 +0200)]
Use separate undefined object for CondExpr
David Lord [Sun, 13 Oct 2019 13:48:54 +0000 (06:48 -0700)]
Merge pull request #1081 from pallets/open-if-exists
skip template with same name as directory
David Lord [Sun, 13 Oct 2019 13:40:54 +0000 (06:40 -0700)]
skip template with same name as directory
When using multiple paths with FileSystemLoader, a template with the
same name as a directory will not prevent loading a template in the
directory.
David Lord [Sun, 13 Oct 2019 04:34:11 +0000 (21:34 -0700)]
Merge pull request #1080 from pallets/no-finalize-template-data
don't finalize TemplateData nodes
David Lord [Sun, 13 Oct 2019 04:04:31 +0000 (21:04 -0700)]
don't finalize TemplateData nodes
Finalize only applies to the output of expressions (constant or not).
Add tests for context, eval, and env finalize functions.
David Lord [Thu, 10 Oct 2019 15:50:20 +0000 (08:50 -0700)]
consistent use of token constants
David Lord [Thu, 10 Oct 2019 14:14:15 +0000 (07:14 -0700)]
Merge pull request #1077 from pallets/pytest-cleanup
Pytest cleanup
David Lord [Thu, 10 Oct 2019 13:57:04 +0000 (06:57 -0700)]
fix invalid double extends test
Kevin Brown [Thu, 10 Oct 2019 06:15:15 +0000 (02:15 -0400)]
Replaced try...catch within tests with pytest.raises
This still leaves one in test_debug which relies on reading out
the traceback and cannot easily be replaced by pytest.raises
like the others.
David Lord [Thu, 10 Oct 2019 03:09:42 +0000 (20:09 -0700)]
Merge pull request #824 from dagwieers/new-type-tests
Add more strict type tests
Dag Wieers [Sat, 17 Mar 2018 03:00:11 +0000 (04:00 +0100)]
Add more strict type tests
This PR adds a few more type-related tests.
- boolean
Testing of an object is a boolean required 2 tests.
- false
Make this similar to testing none value
- true
Make this similar to testing none value
- integer
The existing 'number' test does not make a distinction between
integer, float or even booleans
- float
The existing 'number' test does not make a distinction between
integer, float or even booleans
David Lord [Wed, 9 Oct 2019 23:38:54 +0000 (16:38 -0700)]
Merge pull request #1073 from brtomas0/master
changed test_join functions to unique names
Brandon Tomás [Wed, 9 Oct 2019 23:14:03 +0000 (19:14 -0400)]
changed test_join functions to unique names
David Lord [Mon, 7 Oct 2019 17:11:00 +0000 (10:11 -0700)]
use slots for lexer lstrip marker
David Lord [Mon, 7 Oct 2019 14:42:04 +0000 (07:42 -0700)]
add changelog for #938
David Lord [Mon, 7 Oct 2019 13:55:32 +0000 (06:55 -0700)]
Merge pull request #938 from stevenorum/master
Fixing compiler handling of parens around boolean comparisons.
David Lord [Mon, 7 Oct 2019 06:42:36 +0000 (23:42 -0700)]
add changelog for #858
David Lord [Mon, 7 Oct 2019 06:41:04 +0000 (23:41 -0700)]
Merge pull request #858 from exponea/857-lexer-whitespace-performance
Fix lexer being extremely slow on large amounts of whitespace. Fixes #857
David Lord [Mon, 7 Oct 2019 06:37:16 +0000 (23:37 -0700)]
add comments about lstrip code
David Lord [Mon, 7 Oct 2019 06:28:18 +0000 (23:28 -0700)]
Merge branch 'master' into 857-lexer-whitespace-performance
David Lord [Sun, 6 Oct 2019 04:20:38 +0000 (21:20 -0700)]
Merge pull request #1071 from btharper/pytest-raises
Eliminate dead code by using pytests.raises instead of try/except/else
btharper [Sun, 6 Oct 2019 04:00:24 +0000 (00:00 -0400)]
Eliminate dead code by using pytests.raises instead of try/except/else
David Lord [Sat, 5 Oct 2019 02:17:41 +0000 (19:17 -0700)]
Merge pull request #983 from kevin-brown/pr/798
Add support for a {% debug %} extension tag.
David Lord [Sat, 5 Oct 2019 02:00:11 +0000 (19:00 -0700)]
document debug extension
David Lord [Sat, 5 Oct 2019 01:23:11 +0000 (18:23 -0700)]
don't bypass autoescape
Shaheed Haque [Sun, 14 Jan 2018 14:01:22 +0000 (14:01 +0000)]
Add support for a {% debug %} extension tag.
This dumps the available variables, filters and tests.
David Lord [Fri, 4 Oct 2019 20:11:20 +0000 (13:11 -0700)]
Merge pull request #1047 from lfdebrux/ldeb-bug-chainable_undefined_and_markup
Fix bug with when using Markup on ChainableUndefined
Laurence de Bruxelles [Sat, 10 Aug 2019 21:08:39 +0000 (22:08 +0100)]
Fix bug with when using Markup on ChainableUndefined
Wrapping a ChainableUndefined object with Markup causes an
UndefinedError because Markup thinks that ChainableUndefined has an
attribute called __html__ and tries to call it.
This commit fixes this by defining a method __html__ that calls
ChainableUndefined.__str__. We also add a regression test.
David Lord [Fri, 4 Oct 2019 19:53:44 +0000 (12:53 -0700)]
Merge branch '2.10.x'
David Lord [Fri, 4 Oct 2019 19:51:47 +0000 (12:51 -0700)]
Merge pull request #1070 from anowlcalledjosh/develop
Fix incorrect release date for 2.10.3
Josh Holland [Fri, 4 Oct 2019 19:38:17 +0000 (20:38 +0100)]
Fix incorrect release date for 2.10.3
David Lord [Fri, 4 Oct 2019 19:01:37 +0000 (12:01 -0700)]
Merge pull request #828 from chamini2/trim-more
Add chars option to trim
David Lord [Fri, 4 Oct 2019 18:59:18 +0000 (11:59 -0700)]
Merge branch '2.10.x'
David Lord [Fri, 4 Oct 2019 18:50:02 +0000 (11:50 -0700)]
release version 2.10.3
Adrian [Fri, 4 Oct 2019 18:46:10 +0000 (20:46 +0200)]
Fix typo in setup.py
Matteo Ferrando [Wed, 21 Mar 2018 16:47:46 +0000 (12:47 -0400)]
add chars option to trim
David Lord [Fri, 4 Oct 2019 18:22:50 +0000 (11:22 -0700)]
Merge branch '2.10.x'
David Lord [Fri, 4 Oct 2019 18:18:56 +0000 (11:18 -0700)]
release version 2.10.2
David Lord [Fri, 4 Oct 2019 18:17:12 +0000 (11:17 -0700)]
update project metadata
David Lord [Fri, 4 Oct 2019 15:30:39 +0000 (08:30 -0700)]
Merge pull request #1000 from EtiennePelletier/fix_deadlock_improve_tests
Fix deadlock in LRUCache and improve test coverage
EtiennePelletier [Thu, 9 May 2019 20:50:47 +0000 (16:50 -0400)]
Add tests for Undefined classes
EtiennePelletier [Thu, 9 May 2019 20:49:50 +0000 (16:49 -0400)]
Add tests for utils.py - LRUCache, Lorem Ipsum & +
EtiennePelletier [Thu, 9 May 2019 20:47:54 +0000 (16:47 -0400)]
Prevent deadlock in LRUCache.setdefault
setdefault was acquiring write_lock, then calling getitem and also
potentially setitem, which also both try to acquire the write lock.
David Lord [Fri, 4 Oct 2019 14:42:43 +0000 (07:42 -0700)]
Merge pull request #1040 from minho42/Simplify-import-split
Simplify splitting import_name in import_string()
Joshua Bronson [Sun, 22 Sep 2019 19:29:08 +0000 (15:29 -0400)]
Merge pull request #1065 from alexwlchan/add-pypi-links
Add docs, code and issue tracker links to setup.py
Alex Chan [Sun, 22 Sep 2019 08:52:15 +0000 (09:52 +0100)]
Add docs, code and issue tracker links to setup.py
Joshua Bronson [Fri, 20 Sep 2019 02:28:44 +0000 (22:28 -0400)]
Merge pull request #1063 from PikachuEXE/fix/manifest
Fix MANIFEST.in to include renamed license file
PikachuEXE [Fri, 20 Sep 2019 02:16:11 +0000 (10:16 +0800)]
Fix MANIFEST.in to include renamed license file
Tim Gates [Wed, 4 Sep 2019 22:12:07 +0000 (08:12 +1000)]
Fix simple typo: problemtic -> problematic (#1059)
Plus rephrase the comment for greater clarity.
David Lord [Wed, 4 Sep 2019 15:25:09 +0000 (08:25 -0700)]
Merge branch '2.10.x'
David Lord [Wed, 4 Sep 2019 14:48:06 +0000 (07:48 -0700)]
Merge pull request #1051 from vstinner/tb_next_py37
Fix TracebackFrameProxy.set_next() on Python 3.7
Victor Stinner [Mon, 19 Aug 2019 22:40:39 +0000 (00:40 +0200)]
Fix TracebackFrameProxy.set_next() on Python 3.7
Fix issue #1050: fix a crash in TracebackFrameProxy.set_next() on
Python 3.7 and newer, when Python is build in debug mode.
Since Python 3.7, traceback.tb_next field can be modified: ctypes is
no longer needed.
Joshua Bronson [Fri, 9 Aug 2019 02:49:09 +0000 (22:49 -0400)]
Merge pull request #1045 from yuriks/patch-1
Update PyPI link to point to Jinja2 instead of 1
Yuri Kunde Schlesner [Fri, 9 Aug 2019 00:14:03 +0000 (17:14 -0700)]
Update PyPI link to point to Jinja2 instead of 1
David Lord [Fri, 26 Jul 2019 22:21:16 +0000 (15:21 -0700)]
Merge branch '2.10.x'
David Lord [Fri, 26 Jul 2019 22:17:58 +0000 (15:17 -0700)]
fix tox docs build
David Lord [Fri, 26 Jul 2019 21:57:58 +0000 (14:57 -0700)]
Merge branch '2.9.x' into docs
David Lord [Fri, 26 Jul 2019 21:39:59 +0000 (14:39 -0700)]
Merge pull request #1042 from pallets/docs
modernize docs, 2.9.x branch
David Lord [Fri, 26 Jul 2019 21:36:55 +0000 (14:36 -0700)]
reformat readme
David Lord [Fri, 26 Jul 2019 19:12:41 +0000 (12:12 -0700)]
fix linkcheck issues
David Lord [Wed, 24 Jul 2019 21:18:02 +0000 (14:18 -0700)]
modernize docs config, use pallets-sphinx-themes
Min ho Kim [Thu, 25 Jul 2019 13:28:26 +0000 (23:28 +1000)]
Fix typo
Min ho Kim [Tue, 23 Jul 2019 23:55:04 +0000 (09:55 +1000)]
Simplify splitting import_name in import_string()
David Lord [Tue, 23 Jul 2019 22:23:03 +0000 (15:23 -0700)]
Merge pull request #1035 from utoddl/stable-sort-doc
document that sort is stable
David Lord [Tue, 23 Jul 2019 22:20:07 +0000 (15:20 -0700)]
clean up sort filter docs