mirror of
https://github.com/pyscript/pyscript.git
synced 2026-05-13 16:00:04 -04:00
[feature] py-editor setup (#1989)
This commit is contained in:
committed by
GitHub
parent
84f197b657
commit
df1d699fe6
21
pyscript.core/test/py-editor/index.html
Normal file
21
pyscript.core/test/py-editor/index.html
Normal file
@@ -0,0 +1,21 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<link rel="stylesheet" href="../../dist/core.css">
|
||||
<script type="module" src="../../dist/core.js"></script>
|
||||
</head>
|
||||
<body>
|
||||
<script type="mpy-editor" src="task1.py" env="task1" setup></script>
|
||||
<script type="mpy-editor" env="task1">
|
||||
print(a)
|
||||
</script>
|
||||
<script type="mpy-editor" env="task2" setup>
|
||||
b = 2
|
||||
</script>
|
||||
<script type="mpy-editor" env="task2">
|
||||
print(b)
|
||||
</script>
|
||||
</body>
|
||||
</html>
|
||||
1
pyscript.core/test/py-editor/task1.py
Normal file
1
pyscript.core/test/py-editor/task1.py
Normal file
@@ -0,0 +1 @@
|
||||
a = 1
|
||||
Reference in New Issue
Block a user