summaryrefslogtreecommitdiff
path: root/app/templates
diff options
context:
space:
mode:
authorjerome <jerome@xlinfo.fr>2026-02-24 13:18:28 +0100
committerjerome <jerome@xlinfo.fr>2026-02-24 13:18:28 +0100
commit93febd4968ebbf0f5a90989bbe11abcaaafcdbd1 (patch)
tree27969e7c656077601e31da2b589b3031bc201f32 /app/templates
downloadhelloflask-93febd4968ebbf0f5a90989bbe11abcaaafcdbd1.tar.gz
helloflask-93febd4968ebbf0f5a90989bbe11abcaaafcdbd1.zip
commit initialHEADmaster
Diffstat (limited to 'app/templates')
-rw-r--r--app/templates/index.html11
-rw-r--r--app/templates/register.html14
2 files changed, 25 insertions, 0 deletions
diff --git a/app/templates/index.html b/app/templates/index.html
new file mode 100644
index 0000000..b4869d6
--- /dev/null
+++ b/app/templates/index.html
@@ -0,0 +1,11 @@
+<!DOCTYPE html>
+<html lang="fr">
+ <head>
+ <meta charset="UTF-8">
+ <title>Hello {{ name }}</title>
+ </head>
+ <body>
+ <h1>Hello {{ name }}</h1>
+ <p>From {{ host }}</p>
+ </body>
+</html>
diff --git a/app/templates/register.html b/app/templates/register.html
new file mode 100644
index 0000000..bd39bdf
--- /dev/null
+++ b/app/templates/register.html
@@ -0,0 +1,14 @@
+<!DOCTYPE html>
+<html lang="fr">
+<head>
+ <meta charset="UTF-8">
+ <title>Register</title>
+</head>
+<body>
+ <h1>Register</h1>
+ <form action="{{ url_for('index') }}" method="POST">
+ <input type="text" name="username" placeholder="Username" required>
+ <button type="submit">Valider</button>
+ </form>
+</body>
+</html>