Feat(1NSI): requete POST et serveur bottle
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
2023-01-13 15:14:16 +01:00
parent 4c71287f0e
commit 5b206949dd
6 changed files with 107 additions and 3 deletions

View File

@@ -0,0 +1,6 @@
@post('/formulaire')
def bonjour() :
nom = bottle.request.forms.get('nom')
body = "<p>Bonjour mon(a) che(è)r(e) " + nom + "</p>"
return template("modele_base.py", body=body)