diff options
author | root <clyhtsuriva@gmail.com> | 2020-03-01 21:18:29 +0100 |
---|---|---|
committer | root <clyhtsuriva@gmail.com> | 2020-03-01 21:18:29 +0100 |
commit | 30e5e0279463f67d94b1c0f55f2fda97bcf9b1df (patch) | |
tree | d347edbdc3a2a57b4be76c93c65841b8cd746723 /web/website/fonctions.py | |
parent | 32dfd7da66bce3d39812cecf5aba5ef6f8c97c0b (diff) |
password protection
Diffstat (limited to 'web/website/fonctions.py')
-rw-r--r-- | web/website/fonctions.py | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/web/website/fonctions.py b/web/website/fonctions.py new file mode 100644 index 0000000..1b18cc7 --- /dev/null +++ b/web/website/fonctions.py @@ -0,0 +1,16 @@ +#!/usr/bin/python3 +# -*- coding: utf-8 -*- + +def baseHTML(title,body): + content=("""<!DOCTYPE html> +<html> + <head> + <title>"""+ title +"""</title> + <meta charset="UTF-8"> + <link rel="stylesheet" type="text/css" href="styde.css"> + </head> + <body>"""+ body +"""</body> +</html> + + """) + return content |