Skip to content

Breaks with nested extends #28

Description

@AdamDemirel

container.html:

<div>
  <block name="grid-children">
  </block>
</div>

column.html:

<div>
  <block name="col-children">
  </block>
</div>

index.html:
The following works fine as expected:

<extends src="./container.html">
  <block name="grid-children"> -->
     <div>this works</div>
  </block>
</extends>

But the following breaks with Error: [posthtml-extend] Unexpected block "col-children":

<extends src="./container.html">
  <block name="grid-children"> -->
    <extends src="./column.html">
      <block name="grid-children">
        <div>this breaks</div>
      </block>
    </extends>
  </block>
</extends>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions