NestedSnippet
Deprecated
This check only exists in Theme Check v1.X.X.
Deprecated:
This check only exists in Theme Check v1.X.X.
Reports deeply nested render tags or include tags.
Anchor to ExamplesExamples
The following examples contain code snippets that either fail or pass this check.
Anchor to ✗ Fail✗ Fail
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
Anchor to ✓ Pass✓ Pass
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
Anchor to OptionsOptions
NestedSnippet
enabledtrue
max_nesting_level2
| Parameter | Description |
|---|---|
| enabled | Whether this check is enabled. |
| max_nesting_level | The maximum depth of snippets rendering snippets. |
Anchor to Disabling this checkDisabling this check
This check is safe to disable.
Was this page helpful?