Version 1.11.0
Fixes
- Fixed comparing strings with
<
,<=
,>
and>=
in boolean expressions ({% if %}
and{% unless %}
). Previously we were raising aLiquidTypeError
, now we return the result of comparing two string by their lexicographical order. See #141.
Features
- Added
CachingChoiceLoader
, a template loader that chooses between a list of template loaders and caches parsed templates in memory. (docs, source) - Added
PackageLoader
, a template loader that reads templates from Python packages. (docs, source)
Dependencies
- Python Liquid now depends on importlib-resources >= 5.10. This is that backport of importlib.resources from Python's standard library. We use it in
PackageLoader
.