Skip to content

Commit 831621b

Browse files
committed
fixes #434
1 parent cdfc05a commit 831621b

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

fasthtml/core.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ def add_ws(self, path: str, recv: callable, conn:callable=None, disconn:callable
465465
# %% ../nbs/api/00_core.ipynb
466466
htmxsrc = Script(src="https://unpkg.com/htmx.org@next/dist/htmx.min.js")
467467
htmxwssrc = Script(src="https://unpkg.com/htmx-ext-ws/ws.js")
468-
fhjsscr = Script(src="https://cdn.jsdelivr.net/gh/answerdotai/[email protected].2/fasthtml.js")
468+
fhjsscr = Script(src="https://cdn.jsdelivr.net/gh/answerdotai/[email protected].3/fasthtml.js")
469469
htmxctsrc = Script(src="https://unpkg.com/htmx-ext-transfer-encoding-chunked/transfer-encoding-chunked.js")
470470
surrsrc = Script(src="https://cdn.jsdelivr.net/gh/answerdotai/surreal@main/surreal.js")
471471
scopesrc = Script(src="https://cdn.jsdelivr.net/gh/gnat/css-scope-inline@main/script.js")

fasthtml/js.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def dark_media(
2727

2828
# %% ../nbs/api/03_js.ipynb
2929
marked_imp = """import { marked } from "https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js";
30-
import { proc_htmx } from "https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js/fasthtml.js";
30+
import { proc_htmx } from "https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.3/fasthtml.js";
3131
"""
3232
npmcdn = 'https://cdn.jsdelivr.net/npm/'
3333

@@ -85,7 +85,7 @@ def SortableJS(
8585
):
8686
src = """
8787
import {Sortable} from 'https://cdn.jsdelivr.net/npm/sortablejs/+esm';
88-
import {proc_htmx} from "https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js/fasthtml.js";
88+
import {proc_htmx} from "https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.3/fasthtml.js";
8989
proc_htmx('%s', Sortable.create);
9090
""" % sel
9191
return Script(src, type='module')

nbs/api/00_core.ipynb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1224,7 +1224,7 @@
12241224
"#| export\n",
12251225
"htmxsrc = Script(src=\"https://unpkg.com/htmx.org@next/dist/htmx.min.js\")\n",
12261226
"htmxwssrc = Script(src=\"https://unpkg.com/htmx-ext-ws/ws.js\")\n",
1227-
"fhjsscr = Script(src=\"https://cdn.jsdelivr.net/gh/answerdotai/[email protected].2/fasthtml.js\")\n",
1227+
"fhjsscr = Script(src=\"https://cdn.jsdelivr.net/gh/answerdotai/[email protected].3/fasthtml.js\")\n",
12281228
"htmxctsrc = Script(src=\"https://unpkg.com/htmx-ext-transfer-encoding-chunked/transfer-encoding-chunked.js\")\n",
12291229
"surrsrc = Script(src=\"https://cdn.jsdelivr.net/gh/answerdotai/surreal@main/surreal.js\")\n",
12301230
"scopesrc = Script(src=\"https://cdn.jsdelivr.net/gh/gnat/css-scope-inline@main/script.js\")\n",

nbs/api/03_js.ipynb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@
129129
"source": [
130130
"#| export\n",
131131
"marked_imp = \"\"\"import { marked } from \"https://cdn.jsdelivr.net/npm/marked/lib/marked.esm.js\";\n",
132-
" import { proc_htmx } from \"https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js/fasthtml.js\";\n",
132+
" import { proc_htmx } from \"https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.3/fasthtml.js\";\n",
133133
"\"\"\"\n",
134134
"npmcdn = 'https://cdn.jsdelivr.net/npm/'"
135135
]
@@ -265,7 +265,7 @@
265265
" ):\n",
266266
" src = \"\"\"\n",
267267
"import {Sortable} from 'https://cdn.jsdelivr.net/npm/sortablejs/+esm';\n",
268-
"import {proc_htmx} from \"https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js/fasthtml.js\";\n",
268+
"import {proc_htmx} from \"https://cdn.jsdelivr.net/gh/answerdotai/fasthtml-js@1.0.3/fasthtml.js\";\n",
269269
"proc_htmx('%s', Sortable.create);\n",
270270
"\"\"\" % sel\n",
271271
" return Script(src, type='module')"

0 commit comments

Comments
 (0)