mirror of
https://github.com/pyscript/pyscript.git
synced 2022-05-01 19:47:48 +03:00
update examples to show loading modules into the environment
This commit is contained in:
@@ -10,6 +10,10 @@
|
||||
<link rel="stylesheet" href="/build/pyscript.css" />
|
||||
|
||||
<script defer src="/build/pyscript.js"></script>
|
||||
<py-env>
|
||||
- paths:
|
||||
- /utils.py
|
||||
</py-env>
|
||||
</head>
|
||||
|
||||
<body class="container">
|
||||
@@ -22,7 +26,8 @@
|
||||
<div class="text-center w-full mb-8">
|
||||
<h1 class="text-3xl font-bold text-gray-800 uppercase tracking-tight">To Do List</h1>
|
||||
</div>
|
||||
|
||||
<py-button label="click me">
|
||||
</py-button>
|
||||
<div>
|
||||
<input id="new-task-content" class="border flex-1 mr-3 border-gray-300 p-2 rounded" type="text">
|
||||
<button id="new-task-btn" class="p-2 text-white bg-blue-600 border border-blue-600 rounded" type="submit" pys-onClick="add_task">
|
||||
@@ -30,6 +35,7 @@
|
||||
</button>
|
||||
</div>
|
||||
|
||||
<py-list id="myList"></py-list>
|
||||
<div id="list-tasks-container" class="flex flex-col-reverse mt-4">
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user