Skip to content

Ability to define placeholder for inner HTML #193

@mkopylec

Description

@mkopylec

Is there a way to define something like:

xtag.register('x-frankenstein', {
    content: '<div><p>component text</p>${innerHTML}</div>'
});

so it can be use in HTML file like:

<x-frankenstein>
    <p>external text</p>
</x-frankenstein>

and then the rendered result to be:

<div>
    <p>component text</p>
    <p>external text</p>
</div>

?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions