Captures the string inside of the opening and closing tags and assigns it to a variable. Capture makes it easy to create complex strings using a variety of methods.
{% capture [var|set|assign] name %}code block{% endcapture %}
If you do not specify one of "var", "set", or "assign", then the "var" behavior will be used - which is to save the result on the current scope.
The capture tag creates a new child scope.
If name starts with '&', will attempt to assign the value by reference.
Using Capture to create page descriptions
CopyCapturing markup and passing it to an included template
Copy