0.0.6 • Published 2 years ago

be-kibitzing v0.0.6

Weekly downloads
-
License
MIT
Repository
github
Last release
2 years ago

be-kibitzing

Insert a template into a Shadow DOM sequence.

be-kibitizing is an attribute-based equivalent of xtal-decorator.

How big is this package in your project?

<template be-kibitzing='{
    "selectorSequence": ["ginny-weasly", "book-bag"]
}'>
    <tom-riddles-diary></tom-riddles-diary>
</template>

...
<ginny-weasly>
    #shadow-root#
        <book-bag></book-bag>
</ginny-weasly>

Generates:

<template be-kibitzing='{
    "selectorSequence": ["ginny-weasly", "book-bag"]
}'>
    <tom-riddles-diary></tom-riddles-diary>
</template>

...
<ginny-weasly>
    #shadow-root#
        <book-bag>
            #shadow-root#
                <tom-riddles-diary></tom-riddles-diary>
        </book-bag>
</ginny-weasly>