-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
12 changed files
with
12 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
<head> | ||
<title>Datastar SDK Demo</title> | ||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
</head> | ||
<body class="bg-white dark:bg-gray-900 text-lg max-w-xl mx-auto my-16"> | ||
<div data-signals-delay="400" class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg px-6 py-8 ring shadow-xl ring-gray-900/5 space-y-2"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<head> | ||
<title>Datastar SDK Demo</title> | ||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
</head> | ||
<body class="bg-white dark:bg-gray-900 text-lg max-w-xl mx-auto my-16"> | ||
<div data-signals-delay="400" class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg px-6 py-8 ring shadow-xl ring-gray-900/5 space-y-2"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<head> | ||
<title>Datastar SDK Demo</title> | ||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
</head> | ||
<body class="bg-white dark:bg-gray-900 text-lg max-w-xl mx-auto my-16"> | ||
<div data-signals-delay="400" class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg px-6 py-8 ring shadow-xl ring-gray-900/5 space-y-2"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<head> | ||
<title>Datastar SDK Demo</title> | ||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
</head> | ||
<body class="bg-white dark:bg-gray-900 text-lg max-w-xl mx-auto my-16"> | ||
<div data-signals-delay="400" class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg px-6 py-8 ring shadow-xl ring-gray-900/5 space-y-2"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<head> | ||
<title>Datastar SDK Demo</title> | ||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
</head> | ||
<body class="bg-white dark:bg-gray-900 text-lg max-w-xl mx-auto my-16"> | ||
<div data-signals-delay="400" class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg px-6 py-8 ring shadow-xl ring-gray-900/5 space-y-2"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<head> | ||
<title>Datastar SDK Demo</title> | ||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
</head> | ||
<body class="bg-white dark:bg-gray-900 text-lg max-w-xl mx-auto my-16"> | ||
<div data-signals-delay="400" class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg px-6 py-8 ring shadow-xl ring-gray-900/5 space-y-2"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,7 +5,7 @@ | |
<head> | ||
<title>Datastar SDK Demo</title> | ||
<script src="https://unpkg.com/@tailwindcss/browser@4"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
</head> | ||
<body class="bg-white dark:bg-gray-900 text-lg max-w-xl mx-auto my-16"> | ||
<div data-signals-delay="400" class="bg-white dark:bg-gray-800 text-gray-500 dark:text-gray-400 rounded-lg px-6 py-8 ring shadow-xl ring-gray-900/5 space-y-2"> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,5 +11,5 @@ | |
[:head | ||
[:meta {:charset "UTF-8"}] | ||
[:script {:type "module" | ||
:src "https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"}]] | ||
:src "https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"}]] | ||
[:body body]]])) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
|
||
;; NOTE: Monitor the datastar cdn version | ||
(def datastar | ||
(script "module" "https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js")) | ||
(script "module" "https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js")) | ||
|
||
(defn scaffold [content & {:as _}] | ||
(hc/compile | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -8,7 +8,7 @@ Real-time Hypermedia first Library and Framework for dotnet | |
<html lang="en"> | ||
<head> | ||
<script type="module" | ||
src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
<title>D* Demo</title> | ||
</head> | ||
<body> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -9,7 +9,7 @@ import ( | |
|
||
templ Home() { | ||
{{ | ||
cdnText := `<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script>` | ||
cdnText := `<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script>` | ||
}} | ||
{{ | ||
usageSample := `<input data-bind-title /> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ With Datastar, you can build any UI that a full-stack framework like React, Vue. | |
The quickest way to use Datastar is to include it in your HTML using a script tag hosted on a CDN. | ||
|
||
```html | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].2/bundles/datastar.js"></script> | ||
<script type="module" src="https://cdn.jsdelivr.net/gh/starfederation/[email protected].3/bundles/datastar.js"></script> | ||
``` | ||
|
||
If you prefer to host the file yourself, download your own bundle using the [bundler](/bundler), then include it from the appropriate path. | ||
|