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

Support lit-element? #14

Open
Jack-Works opened this issue Feb 14, 2020 · 3 comments
Open

Support lit-element? #14

Jack-Works opened this issue Feb 14, 2020 · 3 comments
Labels
feature good first issue Good for newcomers

Comments

@Jack-Works
Copy link

render() {
        return html`Web Components are <span>${this.mood}</span>!`;
}

https://github.com/Polymer/lit-element

Lit-element need a html`string` but this transformer seems only emit `string`

@danielpza
Copy link
Member

Could you expand a little more in what is the expected input&output here?

@Jack-Works
Copy link
Author

e.g.
Input

<div />

Output

html\`<div />\`

You can see the document of lit-element. It's a framework use tagged template string as it's template

@danielpza
Copy link
Member

I think this feature escape the scope of the project a bit... but why not, I think it shouldn't be that hard.

I plan to add it under an option, something like output: lit-element or something like that, What do you think?

I'll probably work on it when I have time, you're free to look up the code and make a PR 😄

@danielpza danielpza added feature good first issue Good for newcomers labels Feb 14, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

2 participants