Skip to content

Version 1.8.0

Compare
Choose a tag to compare
@jg-rp jg-rp released this 09 Aug 07:29
· 19 commits to main since this release

Fixes

  • Fixed comparison of simple arrays with {% if %}, {% unless %} and {% case %} tags. Previously, two simple arrays with the same elements would not be considered equal.
  • Fixed the standard map filters handling of nested input arrays. We now automatically flatten nested input arrays and coerce non-iterable inputs to a single element array, just like Ruby Liquid.
  • Fixed the {% liquid %} tag's handling of some corner cases involving nested liquid tags.

Features

  • Added the standard sum filter, which returns the sum of any numeric values in its input array (docs, source).
  • Added optional {% extends %} and {% block %} tags that add template inheritance features to Liquid templates (docs, source).
  • Added filter and tag properties to the result of Template.analyze(), containing the locations of filters and tags found during static analysis (docs).