Re: [w3c/webcomponents] HTML Modules (#645)

I was imagining #2. But if we use the generic imports idea:

1. HTML snippets can be imported via a built-in `import doc from "./template.html" as Document`
2. Further dependencies can be imported via a library which defines HTMLModule as a function in `import doc from "./template.html" as HTMLModule`. This would use the approach I described earlier, which would look through the fetched HTML for things like further script modules, and import those (presumably using the dynamic import feature). This covers propagation through the dependency graph via a library.

So the way I see it, the generic imports idea covers both.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/645#issuecomment-312016134

Received on Thursday, 29 June 2017 16:13:46 UTC