-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathindex.html
More file actions
33 lines (32 loc) · 922 Bytes
/
Copy pathindex.html
File metadata and controls
33 lines (32 loc) · 922 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
<!doctype html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<meta name="color-scheme" content="light dark" />
<title>Datastar Plugin Starter</title>
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@picocss/pico@2/css/pico.classless.min.css"
/>
<script type="importmap">
{
"imports": {
"datastar": "https://cdn.jsdelivr.net/gh/starfederation/datastar@v1.0.0/bundles/datastar.js"
}
}
</script>
<script type="module" src="./dist/index.js"></script>
</head>
<body>
<main>
<h1>Plugin Demo</h1>
<!-- add some HTML here to demo your plugin behaviour -->
<pre><code
data-signals:i="1"
data-on-interval__duration.1s="$i++"
data-text="@fizzbuzz($i)"
></code></pre>
</main>
</body>
</html>