capture

Description

Combine a number of strings into a single string and save it to a variable.

Syntax

{% capture <name> %}<text>{% endcapture %}

Example

{% capture full_name %}{{ person.first_name }} {{ person.last_name }}{% endcapture %}
{{ full_name }}
© 2024 LocomotiveCMS Terms of use Privacy Policy
Back to top