Closed nokazn closed 2 years ago
@nokazn the issue you mention was referring to this issue https://github.com/posthtml/posthtml-expressions/issues/126#issue-1125181767
It's a bit different, where you have multiple extends in one page and not multiple slots in one extends.
Or does this PR fix also the case above?
@thewebartisan7
I think this PR fixes both where you have multiple extends
in one page and multiple slots
in one extends
.
extends
in one page https://github.com/posthtml/posthtml-extend/blob/ccf454a4b0ead941626bd7c09aae79c0e8c2388c/test/extend.js#L322-L368slots
in one extends
https://github.com/posthtml/posthtml-extend/blob/ccf454a4b0ead941626bd7c09aae79c0e8c2388c/test/extend.js#L264-L290Thanks for your reply. My bad I didn't check test. I am glad to hear that it works now.
I was checking into posthtml-modules to allow multiple tag
Although I regret that extend does not have 'attributeAsLocals' like modules.
I wonder why there is three type of similar plugins (include, extend and modules), each one with unique features, instead of single plugin that combine features of this three.
Overview
Hi, there.
I encountered the similar issue with #47. I created
content.html
like below, but couldn't get expected result.Expected behavior
Actual behavior
This PR is a patch for this issue.
Changes
blockNodes
, which is return value ofgetBlockNodes
function has arrays of PostHTML Node in each key (Record<string, Node[]>
)<extends>
Related