We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a structure with nested includes like this:
File 1:
<div> {% assign foo = foo_object %} {% include 'file_2' %} </div>
File 2:
<ul> {% for bar in foo.bars %} {% include 'file_3' %} {% endfor %} </ul>
File 3:
<li>{{ bar.title }}</li>
I expect to see that bar.title is output from file 3. The include is working because I can see the li but bar is an empty object.
bar.title
li
bar
If I output bar.title inside file 2 it works fine.
The text was updated successfully, but these errors were encountered:
you can try the following:
<ul> {% for bar in foo.bars %} {% include 'file_3' bar=bar %} {% endfor %} </ul>
Sorry, something went wrong.
No branches or pull requests
I have a structure with nested includes like this:
File 1:
File 2:
File 3:
I expect to see that
bar.title
is output from file 3. The include is working because I can see theli
butbar
is an empty object.If I output
bar.title
inside file 2 it works fine.The text was updated successfully, but these errors were encountered: