mirror of
https://github.com/pyscript/pyscript.git
synced 2026-05-11 09:00:22 -04:00
* Remove toml j0.4 and use Polyscript TOML parser * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * removed toml-j0.4 and updated pyodide --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
22 lines
725 B
HTML
22 lines
725 B
HTML
<!doctype html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>PyScript Next</title>
|
|
<link rel="stylesheet" href="../../../dist/core.css">
|
|
<script type="module" src="../../../dist/core.js"></script>
|
|
</head>
|
|
<body>
|
|
<mpy-config config-parser="./toml.js">name = first</mpy-config>
|
|
<script type="mpy">
|
|
from pyscript import RUNNING_IN_WORKER
|
|
print('main', RUNNING_IN_WORKER)
|
|
</script>
|
|
<script type="mpy" worker>
|
|
from pyscript import RUNNING_IN_WORKER
|
|
print('worker', RUNNING_IN_WORKER)
|
|
</script>
|
|
</body>
|
|
</html>
|