mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-19 18:27:29 -05:00
examples: py-env to py-config (#784)
* examples: py-env to py-config * 1 example as JSON with type * Fix todo event attribute
This commit is contained in:
@@ -10,10 +10,11 @@
|
||||
<link rel="stylesheet" href="https://pyscript.net/latest/pyscript.css" />
|
||||
|
||||
<script defer src="https://pyscript.net/latest/pyscript.js"></script>
|
||||
<py-env>
|
||||
- paths:
|
||||
- ./utils.py
|
||||
</py-env>
|
||||
<py-config>
|
||||
paths = [
|
||||
"./utils.py"
|
||||
]
|
||||
</py-config>
|
||||
</head>
|
||||
|
||||
<body class="container">
|
||||
@@ -28,7 +29,7 @@
|
||||
</div>
|
||||
<div>
|
||||
<input id="new-task-content" class="py-input" type="text">
|
||||
<button id="new-task-btn" class="py-button" type="submit" py-onClick="add_task()">
|
||||
<button id="new-task-btn" class="py-button" type="submit" py-click="add_task()">
|
||||
Add task
|
||||
</button>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user