Add support for webc:bucket
on any tag, cascade to all child content
#122
Labels
enhancement
New feature or request
Milestone
This is related to the Asset Bucketing feature,
webc:bucket
: https://www.11ty.dev/docs/languages/webc/#asset-bucketingCurrently this attribute only works on
style
,link rel="stylesheet"
, orscript
. This would allow authors to add this attribute to any element and would apply the bucket value to any child content in the tree under the node.Furthermore, also add a hoisting feature to de-duplicate content that is added to multiple distinct buckets.
For example:
<component></component>
has an inherited bucket value ofinherited-bucket
<component webc:bucket="my-bucket-override"></component>
has a bucket value of 'my-bucket-override' but this is ignored.<component>
instances is used, in this caseinherited-bucket
.Another example:
<component></component>
has an implied bucket value ofdefault
<component webc:bucket="my-bucket-override"></component>
has a bucket value of 'my-bucket-override' but this is ignored.<component>
instances is used, in this casedefault
.Another example:
<component webc:bucket="my-bucket-override"></component>
both have a bucket value of 'my-bucket-override' and it is used.Marginally related to 11ty/eleventy-plugin-bundle#5
The text was updated successfully, but these errors were encountered: