Variable

Variable tags create new Liquid variables.

assign

Creates a new variable.

Input

Output

  This statement is valid.

Wrap a variable in quotations " to save it as a string.

Input

Output

bar

capture

Captures the string inside of the opening and closing tags and assigns it to a variable. Variables created through {% capture %} are strings.

Input

Output

I am being captured.

Using capture, you can create complex strings using other variables created with assign.

Input

Output

I am 35 and my favourite food is pizza.