@projectevergreen/astro-wcc 0.1.2 → 0.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +12 -0
- package/TODO.md +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -17,6 +17,18 @@ An [Astro](https://astro.build/) integration for SSR Web Components using [WCC](
|
|
|
17
17
|
integrations: [ astroWcc() ]
|
|
18
18
|
});
|
|
19
19
|
```
|
|
20
|
+
1. You can now use a component in an Astro file
|
|
21
|
+
```html
|
|
22
|
+
<!-- src/pages/index.astro -->
|
|
23
|
+
<html lang="en">
|
|
24
|
+
<head>
|
|
25
|
+
<script src="../components/greeting.js"></script>
|
|
26
|
+
</head>
|
|
27
|
+
<body>
|
|
28
|
+
<x-greeting></x-greeting>
|
|
29
|
+
</body>
|
|
30
|
+
</html>
|
|
31
|
+
```
|
|
20
32
|
|
|
21
33
|
## Caveats
|
|
22
34
|
|
package/TODO.md
CHANGED