Liquex.Tag.CaptureTag (liquex v0.10.2) View Source
Captures the string inside of the opening and closing tags and assigns it to a variable. Variables created using capture are stored as strings.
Input
{% capture my_variable %}I am being captured.{% endcapture %}
{{ my_variable }}
Output
I am being captured.
Using capture, you can create complex strings using other variables created with assign.
Input
{% assign favorite_food = "pizza" %}
{% assign age = 35 %}
{% capture about_me %}
I am {{ age }} and my favorite food is {{ favorite_food }}.
{% endcapture %}
{{ about_me }}
Output
I am 35 and my favourite food is pizza.
Link to this section Summary
Functions
Callback implementation for Liquex.Tag.parse/0
.
Callback implementation for Liquex.Tag.render/2
.
Link to this section Functions
Callback implementation for Liquex.Tag.parse/0
.
Callback implementation for Liquex.Tag.render/2
.