4 ms·
I believe that Svelte is so natural extension to the current web that - just like with CoffeeScript and ES6 - some of it should be adopted. Importing HTML file
by xiphias2 5y ago
I believe that Svelte is so natural extension to the current web that - just like with CoffeeScript and ES6 - some of it should be adopted.
Importing HTML files as modules with localized CSS+JS as web components would be one such option for example.
- deleted 5y ago[deleted]
- replygirl 5y agothis is called an html module: https://github.com/WICG/webcomponents/blob/gh-pages/proposals/html-modules-explainer.md https://github.com/WICG/webcomponents/blob/gh-pages/proposal...
- xiphias2 5y agoThanks, it looks great. I'm happy that they didn't rush it. They don't talk much about compatibility with current web frameworks, I think they should. I really hope that it will be featureful enough to support being a target for compiling Svelte components (or even maybe React / Vue components) to HTML modules to be imported at some point, but still stay simple enough to be useful.