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

JavaScript modules how to import html? #327

Closed
anlexN opened this issue May 12, 2020 · 1 comment
Closed

JavaScript modules how to import html? #327

anlexN opened this issue May 12, 2020 · 1 comment

Comments

@anlexN
Copy link

anlexN commented May 12, 2020

your README.md says "Note that HTML Imports are deprecated in favor of JavaScript modules"

@bicknellr
Copy link
Collaborator

Hi @anlexN, after HTML Imports were dropped from the specs, JavaScript modules are really the only standard option for linking between source files. Polymer and lit-html have switched over to putting HTML inside template literals which are internally used to populate a <template> at runtime to convert them to DOM objects.

If you're looking to write HTML and have that interact with the JS module graph, I'd recommend following WICG/webcomponents#645, where this is being considered for standardization.

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

No branches or pull requests

2 participants