Python-liquid

Latest version: v1.13.0

Safety actively analyzes 707299 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 18 of 23

0.11.1

- Template loaders can now include additional template meta data using the `matter` argument of `liquid.loaders.TemplateSource`. See the example `FrontMatterFileSystemLoader` in the README. See 32.
- Implemented `ChoiceLoader`, a loader that tries to load a template from a list of loaders.
- Added a `FileExtensionLoader`, a template loader that inherits from `FileSystemLoader` and automatically appends a file extension if one is missing.
- The built-in `date` filter now accepts the special input value of "today" as well as "now".
- The built-in `truncate` filter now has a default length of 50.
- The built-in `truncatewords` filter now has a default number of words of 15.
- Fixed a bug with the `slice` filter where it would return an empty string when presented with a negative start index and length that would have exceeded the length of the sequence. See 35.
- Drops can now define safe HTML string representations using a `__html__` method.
- Removed `liquid.mode.error()` in favour of `liquid.Environment.error()`

0.11.0

- Test that `0.0` is not falsy.
- Test that the `date` filter handles unix timestamps given as integers or strings.

- Publish this test suite in YAML as well as JSON
- Update Python Liquid to 1.4.5
- Update LiquidJS to 9.42.0
- Update LiquidScript to 1.4.0

0.10.2

- Moved and organized "render" test cases into importable "golden" test cases.
- Change `RangeLiteral` string representation to match the reference implementation.
- Add newlines to `tablerow` output. As per the reference implementation.

0.10.1

- Range literals can now be assigned, compared and passed as arguments to `include` or `render` tags. They can also be filtered as if they were an array.
- Range literals will accept a float value for start and/or stop values. If a float is given for start or stop, it will be cast to an integer.
- Fixed a bug where the token stream would return the wrong token when peeking immediately after a push.

0.10.0

- Test ranges where start and stop values are equal.
- Test that `0` is not falsy.
- Test that `1` is not truthy.
- Test that `0` is not equal to `false`.
- Test that `1` is not equal to `true`.

- Update Shopify/liquid to 5.4.0
- Update LiquidJS to 9.40.0
- Update Python Liquid to 1.4.2
- Update LiquidScript to 1.3.1

0.9.1

- Update LiquidJS to 9.39.1

Page 18 of 23

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.