Skip to content

echo

Outputs an expression in the rendered HTML. This is identical to wrapping an expression in curly brackets ({{ and }}); And it can be used inside liquid tags as well.

Example:

liquid
{% assign title = "YouCan" %}
{% echo title %}

{% liquid %}
  echo title
{% endliquid %}

Output

html
YouCan YouCan