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 %}
1
2
3
4
5
6
2
3
4
5
6
Output
html
YouCan YouCan
1