include
Last updated View as Markdown
Renders a snippet, the same as render, with the same parameters.
Variables that you create in the snippet with assign or capture are also visible after the include tag.
You can also give the snippet name in a variable:
liquid
{% assign card = 'product-card' %}
{% include card, product: product %}1
2
2
Use render in new themes. include is there for themes that come from other platforms.