Create variables

Variables created in parent’s scope can be passed to the partial template by listing them as parameters on the render tag.

output

Title: This is it

Content: What is that for ?

Author: Michel

input

{% render 'components/card1', title: 'This is it', content: 'What is that for ?', author: 'Michel' %}

components/card1.liquid

<article>
    <h4>Title: {{ title }}</h4>
    <p>Content: {{ content}}</p>
    <p>Author: {{ author }}</p>
</article>