Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ability to define placeholder for inner HTML #193

Open
mkopylec opened this issue Feb 1, 2018 · 3 comments
Open

Ability to define placeholder for inner HTML #193

mkopylec opened this issue Feb 1, 2018 · 3 comments

Comments

@mkopylec
Copy link

mkopylec commented Feb 1, 2018

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>

?

@csuwildcat
Copy link
Member

We just landed version 2.0 alpha, which contains this and more - have a look: http://x-tag.github.io/docs

@ghost
Copy link

ghost commented Mar 28, 2018

Sorry I tried to @ mention this issue on the gitter channel. I don't believe their is any problem with this part of the api in v2

@ghost
Copy link

ghost commented Mar 28, 2018

Although I can't find it in the docs but it's in the jasmine tests

~ edit
I made a pull request that added in something on the method for placeholders => x-tag/x-tag.github.io#13

let me know if you need anything else

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants