be-kibitzing
TypeScript icon, indicating that this package has built-in type declarations

0.0.6 • Public • Published

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>

Package Sidebar

Install

npm i be-kibitzing

Weekly Downloads

7

Version

0.0.6

License

MIT

Unpacked Size

10 kB

Total Files

8

Last publish

Collaborators

  • bahrus