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 20 of 23

0.7.5

- Auto reload. Disable automatic reloading of templates by passing `auto_reload=False` to `Environment` or `Template`. For deployments where template sources don't change between service reloads, setting auto_reload to `False` can yield an increase in performance by avoiding calls to `uptodate`.
- Fixed a bug where, when using the `Template` API, `undefined`, `strict_filters`, and `autoescape` where not always passed through to the implicit environment correctly.
- Added support for continuing a for loop using `offset: continue`. See 14.

0.7.4

.. \_MarkupSafe: https://github.com/pallets/markupsafe

- HTML auto-escaping. If `MarkupSafe`\_ is installed and the `autoescape` argument to `Environment` or `Template` is `True`, context variables will be HTML escaped automatically.
- `LiquidSyntaxError` exceptions now include the offending template source in the `source` property.

0.7.3

- The built-in `FileSystemLoader` now accepts a list of paths to search, in order, returning the first template source found. The `search_path` argument can be a string or path-like, or an iterable of strings or path-like objects.
- Added the `encoding` argument to `FileSystemLoader`. Files will be opened with the given encoding. Defaults to `"utf-8"`.
- `FileSystemLoader` will raise a `TemplateNotFound` exception if `..` appears in a template name.

0.7.2

- Undefined variables are now represented by the `Undefined` type, or a subclass of `Undefined`. `Undefined` behaves like `nil`, but can also be iterated over and indexed without error.
- Attempting to loop over an undefined variable no longer raises a `LiquidTypeError`.
- Optionally pass `liquid.StrictUndefined` as the `undefined` argument to `Template()` or `Environment()` to render in `strict variables` mode. All operations on an instance of `StrictUndefined` raise an `UndefinedError`.
- Filters can now raise `FilterValueError` in addition to `FilterArgumentError`. Where a `FilterValueError` refers to an issue with the left value a filter is applied to.
- Applying a built-in filter to an undefined variable no longer raises a `FilterArgumentError` in most cases.
- Added the `strict_filters` argument to the `Environment` and `Template` constructors. When `True`, the default, undefined filters raise a `NoSuchFilterFunc` exception at render time. When `False`, undefined filters are silently ignored.
- The `join` filter now forces items in its left value to strings before joining them.
- The `join` filter's argument is now optional, defaulting to a string containing a single space.

0.7.0

- Test `cycle` tag groups with variable names.
- Clarify `divided_by` filter with float value and integer argument.
- Test `forloop.name`.
- Test `remove_last` filter.
- Test `replace_last` filter.
- Test sort an array of incompatible types using the `sort` filter.
- Test special built-in `first`, `last` and `size` properties of an object that already has those properties/keys.
- Test striping of `script` and `style` HTML tags with the `strip_html` filter.
- Test the `uniq` filter with a key argument and an array of objects with missing key properties.

- Update Shopify/liquid to 5.3.0.alpha.
- Update Python Liquid to 1.1.5.
- Update LiquidJS to 9.35.2.

0.6.4

- Implemented the `blank` keyword. Empty string and strings containing only whitespace are equal to `blank`.
- Implemented the `null` keyword. `null` is an alias for `nil`.
- Implemented the `ifchanged` tag.

Page 20 of 23

© 2025 Safety CLI Cybersecurity Inc. All Rights Reserved.