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

I was under the impression a key part of HTML Modules would be to integrate them with the ES Modules system, so there's only one set of dependencies. For this reason having `import doc from "./template.html"` syntax seems like the best way to go about that. Then allowing the actual import behavior to be customisable with JavaScript allows for a wide range of capabilities, including building HTML import/module like behavior in a library.

This is all orthogonal to using HTML strings in script - it doesn't do anything to get in the way of that, nor does it help make that easier. However it's a big help if you want to keep your markup in HTML files, since it provides an elegant way to integrate other dependencies with your script.

-- 
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-311930360

Received on Thursday, 29 June 2017 10:46:10 UTC