capture

Block tag that captures text into a variable

Input
  • {% capture foo %}Hello world{% endcapture %}
    {{ foo }}
Output
  • Hello world