[w3c/webcomponents] HTML Modules (#645)

Now that JavaScript modules are on the verge of widespread browser support, we should think about an HTML module system that plays well with it. HTML Imports doesn't have a mechanism for exporting symbols, nor can they be imported by JavaScript, however its loading behavior is quite compatible with JavaScript modules.

@dglazkov sketched out a proposal for HTML modules here: https://github.com/dglazkov/webcomponents/blob/html-modules/proposals/HTML-Imports-and-ES-Modules.md

The main points are that, using the JavaScript modules plumbing, you can import HTML.

Either in HTML:

```html
<script type="module" url="foo.html">
```

or JavaScript:

```js
import * as foo from "foo.html";
```

But within the scope of that sketch there are still several questions about the specifics of exporting symbols from HTML and importing to JavaScript.

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

Received on Tuesday, 20 June 2017 15:31:17 UTC