-
-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
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
nested extends locals are not working #44
Comments
@nelsonihc v0.6.2 |
I try the exact your example with nested extends, but I am getting a compilation error, see below: What I am missing?
|
As I understand seem that also parent.html expect a nested block, because it works fine if I add nested block in parent.html, but then content it's duplicated: <!-- parent.html -->
<div>
<block name="content"></block>
<block name="nested">nested content example</block>
</div> Checking source code of compiled file I see that nested block of page.html it's not compiled: <!-- parent.html -->
<div>
<!-- nested.html -->
<div class="nested">
<block name="nested">nested content example</block>
</div>
nested content example
</div> |
Ok I found that is required to set Anyway please add an example in docs about this so next one will spare an hour looking into. Thanks |
Hi, i'm trying to use locals with nested extends block, but it's not working. This use case is interesting for posthtml-extend to create components from code snippets and use them into bigger pages.
results in (code is reformatted for readability):
The text was updated successfully, but these errors were encountered: