We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
const createTemplateElement = htmlString => { const element = document.createElement("template"); element.innerHTML = htmlString; return element; };
import {createTemplateElement as html} from 'webcomponent'; const template = html` <style> :host { display: block; } </style> <slot></slot> `;
Notice the HTML syntax highlighting (available in Atom and GitHub, among others) on the template literal.
The text was updated successfully, but these errors were encountered:
Thanks, this is a nice idea. Did you open it as an Issue rather than a Pull Request in order to get feedback first?
Sorry, something went wrong.
This feature request is within a created issue, not a pull request. I've released this idea as a package that this project can depend on.
OK, well if there's already a separate package for it then it seems like there's not much point in proxying it through this library too?
I think it's still very useful. This library is more of a toolbox than a tool.
No branches or pull requests
Notice the HTML syntax highlighting (available in Atom and GitHub, among others) on the template literal.
The text was updated successfully, but these errors were encountered: