/oss · 1 merged

harttle/liquidjs

A JavaScript version of Liquid, the template language Shopify and many static sites use.

the project on GitHub (opens in a new tab)
  1. 21 Nov 2026

    Splitting text on a space works like Shopify

    What was broken
    Splitting text on a space kept tabs and line breaks inside the words, and double spaces gave empty items. Shopify splits on any run of whitespace.
    What I changed
    I made a single space split on any whitespace and ignore spaces at the start and end, as Shopify does.
    Why it matters
    Word counts and word lists in templates match what Shopify gives.

    see the code, #992 (opens in a new tab)

← every project