pyscript minimum working example
This commit is contained in:
parent
9d09803ddc
commit
38a192abb6
4 changed files with 63 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue