2025-11-08 16:17:55 +01:00

24 lines
734 B
HTML

<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Echo Example</title>
<link rel="stylesheet" href="pico.blue.css">
<meta name="color-scheme" content="light dark">
<script type="module" src="datastar.js"></script>
</head>
<body class="container" data-theme="light">
<h1 style="margin-top: 1em; text-align:center" data-signals:tadaa="[1,2,3,4,5,6,7,8]" data-signals="{myNumber: 1234, blubber: { tadaa: 'todo'}}" >The CRUD Example</h1>
<button data-on:click="console.log($tadaa[3],$blubber.tadaa); @patch('/echo')" >get the echo</button>
<main>
<div id="echo" ></div>
</main>
</body>
</html>