Skip to main content

include
Deprecated

Renders a snippet.

Inside the snippet, you can access and alter variables that are created outside of the snippet.

Deprecated

Deprecated because the way that variables are handled reduces performance and makes code harder to both read and maintain.

The include tag has been replaced by render.

Syntax

{% include 'filename' %}
filename

The name of the snippet to render, without the .liquid extension.

Was this page helpful?