Skip to content

liquid

Encloses multiple tags within one set of delimiters, to allow writing Liquid logic more concisely.

Example:

liquid
{% liquid %}
  assign size = 20

  case size
    when 10
      assign page_status = 'low'
    when 20
      assign page_status = 'exact'
    when 30
      assign page_status = 'high'
    else
      assign page_status = 'unknown'
  endcase

  echo size
{% endliquid %}

Output

html
exact