mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
* Fix #2114 - Cleanup the test folder + automation * Merged both test and tests into a single folder
30 lines
838 B
HTML
30 lines
838 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
|
<title>named workers</title>
|
|
<script type="module" src="../../../dist/core.js"></script>
|
|
</head>
|
|
<body>
|
|
<script type="mpy" async>
|
|
from pyscript import workers
|
|
|
|
await (await workers["mpy"]).greetings()
|
|
await (await workers["py"]).greetings()
|
|
</script>
|
|
<script type="mpy" worker name="mpy">
|
|
def greetings():
|
|
print("micropython")
|
|
|
|
__export__ = ['greetings']
|
|
</script>
|
|
<script type="py" worker name="py">
|
|
def greetings():
|
|
print("pyodide")
|
|
|
|
__export__ = ['greetings']
|
|
</script>
|
|
</body>
|
|
</html>
|