capture
Captures the output inside a block and assigns it to a variable
Example:
liquid
{% assign brand = 'YouCan' %}
{% capture foo %}Hello from {{- brand -}}{% endcapture %}
{{ foo }}
1
2
3
2
3
Output
html
Hello from YouCan
1