- From: Code Hangen <notifications@github.com>
- Date: Thu, 03 Nov 2022 14:30:37 -0700
- To: WICG/webcomponents <webcomponents@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
- Message-ID: <WICG/webcomponents/issues/971/1302685177@github.com>
Hi sashafirsov, thank you for feedback. So... have you ever heard of the oohtml(Object-Oriented HTML) proposal? #### sample.html ```html <!doctype html> <html> <head> <meta charset="utf-8"> <title>Cdn and web components</title> <!-- Imports polyfill with cdn external --> <script src="https://samplecdn1.com/ajax/libs/webcomponents/webcomponents-lite.min.js"></script> <!-- Imports custom element with cdn external --> <link rel="import" href="https://samplecdn2.com/ajax/libs/webcomponents/helloworld.html" tag="imported-component" /> </head> <body> <!-- Runs custom element from samplecdn1, samplecdn2--> <hello-world who="Unicorn"></hello-world> </body> ``` #### [helloworld.html](https://github.com/webqit/oohtml) ```html <template name="home"> <main exportgroup="main.html" class="page-container">Home Page</main> </template> <template name="about"> <img exportgroup="image1.png" src="/about/image1.png" /> <main exportgroup="main.html" class="page-container">About Page</main> </template> ``` **Code-description:** - As we can see in this code snippet, we can import certain tags, namespace, variables through the html itself. - Exports may be more properly wrapped within an <export> element of a designated name. ***What do you think of this idea? the idea of componentizing html with object orientation?*** -- Reply to this email directly or view it on GitHub: https://github.com/WICG/webcomponents/issues/971#issuecomment-1302685177 You are receiving this because you are subscribed to this thread. Message ID: <WICG/webcomponents/issues/971/1302685177@github.com>
Received on Thursday, 3 November 2022 21:30:49 UTC