Skip to main content

NestedSnippet

Deprecated

This check only exists in Theme Check v1.X.X.

Reports deeply nested render tags or include tags.


The following examples contain code snippets that either fail or pass this check.

The following example includes a series of nested snippets:

templates/index.liquid

{% render 'one' %}

snippets/one.liquid

{% render 'two' %}

snippets/two.liquid

{% render 'three' %}

snippets/three.liquid

{% render 'four' %}

snippets/four.liquid

ok

The following example includes snippets with only two levels of nesting:

templates/index.liquid

{% render 'one' %}

snippets/one.liquid

{% render 'two' %}

snippets/two.liquid

ok

NestedSnippet:
enabled: true
max_nesting_level: 2
ParameterDescription
enabledWhether this check is enabled.
max_nesting_levelThe maximum depth of snippets rendering snippets.

Anchor to Disabling this checkDisabling this check

This check is safe to disable.


Was this page helpful?