Skip to main content

echo

Outputs an expression.

Using the echo tag is the same as wrapping an expression in curly brackets ({{ and }}). However, unlike the curly bracket method, you can use the echo tag inside liquid tags.


Tip

You can use filters on expressions inside echo tags.


Syntax

{% liquid
echo expression
%}
expression

The expression to be output.

{% echo product.title %}

{% liquid
echo product.price | money
%}

Output

Health potion

$10.00
Was this page helpful?