Failure to nest "render" more than 1 deep for app block (NestedSnippet problem?)

den232
Shopify Partner
114 1 30

Greetings App People,

 

I seem to be unable to nest liquid render tags more than 1 deep in a app block. I see a reference to NestedSnippet but cannot deduce how to change the max_nesting_level.  Or perhaps that is not the issue? 

 

Please advise! 

 

Thanks jb

 

-------------------------------------------------------------------

 

The error caused when I "shopify extension push":

 

[snippets/inner.liquid] Liquid syntax error: Cannot use render tag in app snippets

 

Here is the code that fails:

outer.liquid app block:

 

{% render 'inner' %}
{% schema %} { "name": "Outer", "target": "section", "settings": [ ] } {% endschema %}

 

inner.liquid snippet:

 

{% render 'icon-caret' %}

 

-------------------------------------------------------------------

 

Here is code that succeeds (no error):

 

outer.liquid app block:

 

{% render 'icon-caret' %}
{% schema %} { "name": "Outer", "target": "section", "settings": [ ] } {% endschema %}

 

 

 

Replies 0 (0)