Skip to main content
Filters change how a value prints. You add them after a value with a pipe: {{ total_price | money }}. You can chain them: {{ note | escape | newline_to_br }}. Foliant supports Liquid’s standard filters (such as escape, default, upcase, date, plus, minus, split, join, newline_to_br) and adds the ones below.

Money

See Money and currency in templates.

Dates and wording

See Dates, languages and translations.

Barcodes and QR codes

See Barcodes and QR codes.

Numbers and text

Colours

Snippets

Two built-in snippets print standard VAT sections:
  • {% include 'vat_breakdown' %}: the VAT breakdown table, per rate.
  • {% include 'legal_notes' %}: the VAT legal notes (reverse charge, export, IOSS…).
See Tax and legal.

Good to know

  • The code editor marks filters it doesn’t know with a warning. Check the preview whenever you see one.
  • Some filters from Shopify’s storefront themes don’t exist in documents. Stick to the filters above and Liquid’s standard ones.