Skip to content

Commit eb51141

Browse files
committed
Fixed uhtml example
1 parent 9fca397 commit eb51141

File tree

7 files changed

+7
-13
lines changed

7 files changed

+7
-13
lines changed
File renamed without changes.

docs/examples/uhtml/index.html

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<meta name="viewport" content="width=device-width,initial-scale=1.0">
66
<title>uhtml/preactive in Python</title>
77
<script type="module" src="../../index.js"></script>
8-
<script type="pyodide" src="./index.py" config="./py-config.toml"></script>
8+
<script type="pyodide" src="./index.py" config="./config.toml"></script>
99
</head>
1010
<body></body>
1111
</html>

docs/examples/uhtml/py-config.toml

-5
This file was deleted.

docs/examples/uhtml/uhtml.py

+2-3
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
from pyodide.ffi import create_proxy as _create_proxy, to_js as _to_js
88
except:
99
from template import Template as _Template
10-
_create_proxy = lambda fn: fn
11-
_to_js = lambda value: value
10+
from jsffi import create_proxy as _create_proxy, to_js as _to_js
1211

1312
### template literal related
1413

@@ -58,7 +57,7 @@ def _transform(tpl, tags):
5857
return tags[tpl]
5958

6059
def _unwrap(entry):
61-
if (_uhtml.Symbol.prototype.isPrototypeOf(entry)):
60+
if (_uhtml.Signal.prototype.isPrototypeOf(entry)):
6261
return entry.value
6362
return entry
6463

docs/index.js

+2-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.js.map

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,6 @@
9090
"to-json-callback": "^0.1.1"
9191
},
9292
"worker": {
93-
"blob": "sha256-LfRMRHNR4OuZRpfqszG9crCkgf5MX6IPDaoCdHjnzls="
93+
"blob": "sha256-NuQY85dugu2Ks8ubOmDiR+aw7eOW0CQvTfRQIknWkPk="
9494
}
9595
}

0 commit comments

Comments
 (0)