Lego2012
12/8/2016 - 6:46 PM

Attach Variable to Include File

Attach Variable to Include File

<!-- Try this: -->

{% capture my_variable %}
  <p>This is a paragraph</p>
  <p>This is another paragraph</p>
{% endcapture %}

{% include include.html content=my_variable  %}

<!-- And then in include.html use this: -->

{{ include.content }}