include
Last updated View as Markdown
Renders a snippet, the same as render, with the same parameters.
The snippet name can also come from 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.