pyscript minimum working example

This commit is contained in:
Jean-Marie 'Histausse' Mineau 2026-05-31 15:39:50 +02:00
parent 9d09803ddc
commit 38a192abb6
Signed by: histausse
GPG key ID: B66AEEDA9B645AD2
4 changed files with 63 additions and 1 deletions

View file

@ -59,11 +59,34 @@
],
site-name: "TTT",
icon: "https://jean-marie.mineau.eu/website_assets/platypus.png",
// Pyscript:
pyscript-headers: (
"remote-2026.3.1": {
html.elem("script", attrs: (type: "module", src: "https://pyscript.net/releases/2026.3.1/core.js"))
html.elem("link", attrs: (rel: "stylesheet", href: "https://pyscript.net/releases/2026.3.1/core.js"))
}
),
pyscript-version: "remote-2026.3.1",
)
#lorem(400)
#pyscript[
```python
for i in range(1, 16):
if i % 3 == 0 and i % 5 == 0:
print("plopliplop")
elif i % 3 == 0:
print("plop")
elif i % 5 == 0:
print("plip")
else:
print(i)
```
]
#summ.card
Test, `this is not a code block`, end test.