Skip to content

Version 1.9.3

Compare
Choose a tag to compare
@jg-rp jg-rp released this 10 Jul 15:23
· 71 commits to main since this release

Fixes

  • Removed is_up_to_date from liquid.BoundTemplate.__repr__. It was causing RuntimeWarnings with Python 3.11 when using an async template loader. Specifically warnings about coroutines that were never awaited.
  • Fixed the map filter. If given a nested array-like input, it now flattens it automatically. See #119.
  • Fixed the behavior of the liquid tag when other liquid tags appear within it. See #123.

Features

  • Added the sum filter, which will return the sum of all numeric values in its input sequence. (docs, source).
  • Added Environment.setup_tags_and_filters() for easier tag and filter registration when subclassing Environment. See #122.