tesses-webserver-cpp/wwwroot/index.twss

26 lines
581 B
Plaintext
Raw Normal View History

2024-09-02 03:19:22 +00:00
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>ToDo List</title>
</head>
<body>
<h1>ToDo List</h1>
<form method="POST" action="./cgi-bin/add-todo.twss">
<input type="text" name="text" placeholder="ToDo Text">
<input type="submit" value="Add">
</form>
<ul>
<!--tws
each(global todos) {
-->
<li><!--tws print htmlencode(item); --></li>
<!--tws
}
-->
</ul>
</body>
</html>