@kotao/liquid
@kotao/liquid renders Liquid templates on Workers. It exists primarily for migrated
Shopify themes (kotao storefront migrate shopify-theme) — a new theme uses the React
Router engine instead — but it is a public package and its surface is stable.
Engine
Section titled “Engine”createKotaoLiquid— a configured Liquid engine (Kotao tags + filters registered).renderLiquid,renderPage,renderSection,renderThemeRoute— render a template string, a full page, a single section (the section-rendering API), or a routed theme page.createMigratedLiquidRenderer,createSnippetFs— the harness migrated themes run on (snippet resolution from the theme bundle).registerKotaoFilters/registerKotaoTags/registerAssetFilters/registerColorFilters— opt-in registration when you bring your own engine instance.
Shopify-compatible drops so migrated templates keep working: shopDrop, productDrop,
collectionDrop, cartDrop, articleDrop / blogDrop, ImageDrop, fontDrop,
colorDrop / ColorSchemeDrop, requestDrop, routesDrop, addressDrop, and
buildShopifyDrops to assemble the standard set. buildMetafields exposes entity metafields
to templates.
Settings resolution
Section titled “Settings resolution”resolveColorSettings / resolveColorSchemeSettings, resolveFontSettings (+ font helpers
like fontFaceCss, fontUrlFor), and resolveImageSettings turn theme settings documents
into render-ready values.