View Source Liquex.Tag.LiquidTag (liquex v0.13.0)

liquid

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

{% liquid
case section.blocks.size
when 1
  assign column_size = ''
when 2
  assign column_size = 'one-half'
when 3
  assign column_size = 'one-third'
else
  assign column_size = 'one-quarter'
endcase %}

Because any tag blocks opened within a liquid tag must also be closed within the same tag, use echo to output data.