feat(cozy): label example "for form handling"

This commit is contained in:
Ayo Ayco 2025-07-05 20:18:51 +02:00
parent 6b1d84eb35
commit 3922e89765

View file

@ -1,3 +1,8 @@
<script server:setup>
const url = McFly.query.url
console.log(McFly)
</script>
<!DOCTYPE html> <!DOCTYPE html>
<html lang="en"> <html lang="en">
<my-head> <my-head>
@ -5,12 +10,9 @@
<title>Cozy</title> <title>Cozy</title>
<link rel="stylesheet" href="/prism.css" /> <link rel="stylesheet" href="/prism.css" />
<script src="/prism.js" defer></script> <script src="/prism.js" defer></script>
<script server:setup>
const url = McFly.query.url
</script>
</my-head> </my-head>
<body> <body>
<awesome-header>A Cozy test page.</awesome-header> <awesome-header>A Cozy test page for form handling.</awesome-header>
<p> <p>
On this page is a demonstration of form submission handing in McFly. A <code>McFly</code> object is accessible on the page which contains request event properties: path, method, query, body. On this page is a demonstration of form submission handing in McFly. A <code>McFly</code> object is accessible on the page which contains request event properties: path, method, query, body.
</p> </p>
@ -22,4 +24,4 @@
{{ McFly }} {{ McFly }}
</code-block> </code-block>
</body> </body>
</html> </html>