Re: [WICG/webcomponents] without .html in link rel="import" and href in web component (Issue #971)

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