Skip to content

Breaks with nested extends #28

@AdamDemirel

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>

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions