---
title: NestedSnippet
description: Reports deeply nested render tags or include tags.
source_url:
  html: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/nested-snippet
  md: >-
    https://shopify.dev/docs/storefronts/themes/tools/theme-check/checks/nested-snippet.md
api_name: liquid
---

# Nested​Snippet

**Deprecated:**

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

Reports deeply nested `render` tags or `include` tags.

***

## Examples

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

### ✗ Fail

The following example includes a series of nested snippets:

## templates/index.liquid

```liquid
{% render 'one' %}
```

## snippets/one.liquid

```liquid
{% render 'two' %}
```

## snippets/two.liquid

```liquid
{% render 'three' %}
```

## snippets/three.liquid

```liquid
{% render 'four' %}
```

## snippets/four.liquid

```liquid
ok
```

### ✓ Pass

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

## templates/index.liquid

```liquid
{% render 'one' %}
```

## snippets/one.liquid

```liquid
{% render 'two' %}
```

## snippets/two.liquid

```liquid
ok
```

***

## Options

```yaml
NestedSnippet:
  enabled: true
  max_nesting_level: 2
```

| Parameter | Description |
| - | - |
| enabled | Whether this check is enabled. |
| max\_nesting\_level | The maximum depth of snippets rendering snippets. |

***

## Disabling this check

This check is safe to [disable](https://shopify.dev/docs/storefronts/themes/tools/theme-check/configuration).

***
