mirror of https://github.com/rwf2/Rocket.git
23 lines
592 B
Plaintext
23 lines
592 B
Plaintext
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width" />
|
|
<title>Rocket: Cookie Examples</title>
|
|
</head>
|
|
<body>
|
|
<h1>Rocket Cookie Examples</h1>
|
|
{% if message is defined %}
|
|
<p>{{ message }}</p>
|
|
{% else %}
|
|
<p>No message yet.</p>
|
|
{% endif %}
|
|
|
|
<form action="/submit" method="post" accept-charset="utf-8">
|
|
<textarea placeholder="Your message here..."
|
|
name="message" rows="10" cols="50"></textarea>
|
|
<p><input type="submit" value="Set Cookie"></p>
|
|
</form>
|
|
</body>
|
|
</html>
|