Repository navigation
This release focuses on Liquid spec correctness — whitespace control, the {% liquid %} tag, operators, and loop/scoping behavior — along with a much larger test suite built around real-world Shopify templates.
New
- Whitespace control —
{%- -%}and{{- -}}trim markers are now supported (#11) - Time in the
datefilter —format_stringnow handles time components, not just dates (thanks @girvo, #7)
Fixes
- Fixed interpreter hang when using
forloop.indexfor array indexing (#8) - Fixed
{% liquid %}tags emitting excessive newlines/whitespace (#16) - Fixed
{%liquidnot parsing with a space after the%(#9) - Fixed the
and/oroperators with bare values, andechoof string literals (#14) - Fixed variable-based ranges,
forlimit,if/forscoping,appendcoercion, and string delimiter handling (#18)
Internal
- Switched code coverage to the
bisect_ppxbackend - Added extensive tests: complex Shopify templates (cart, product, theme, minicart, variants), whitespace-control cases, and new suites for bug fixes, for-loops, and helper filters
Thanks
Big thanks to @Merlin04 for reporting issues #8, #9, #11, #14, and #16, and to @girvo for the date filter contribution.
Install (once it lands in opam-repository):
opam install liquid_ml.0.1.4
opam-repository PR: ocaml/opam-repository#30004
Full changelog: 0.1.3...0.1.4