impressum.py 935 B

12345678910111213141516171819202122232425262728293031323334353637383940
  1. #!/usr/bin/env python
  2. # -*- coding: utf8 -*-
  3. html = """
  4. <!DOCTYPE HTML>
  5. <html>
  6. <head>
  7. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  8. <title>Impressum</title>
  9. </head>
  10. <body>
  11. <h1>Impressum</h1>
  12. <nav><ul style="padding:0"><li style="display:inline;padding:5px;"><a href="/#word">Wort</a></li>
  13. <li style="display:inline;padding:5px;"><a href="/#cyber">Cyber?</a></li>
  14. <li style="display:inline;padding:5px;"><a href="/#disclaimer">Disclaimer</a></li>
  15. <li style="display:inline;padding:5px;"><a href="">Impressum</a></li></ul></nav>
  16. <div><br>
  17. <br>
  18. <br>
  19. <a href="mailto:"></a>
  20. </div>
  21. </body>
  22. </html>
  23. """
  24. status = "200 OK"
  25. def application(environ, start_response):
  26. response_body = html
  27. response_headers = [('Content-Type', 'text/html'),
  28. ('Content-Length', str(len(response_body.encode('utf8'))))]
  29. start_response(status, response_headers)
  30. return [response_body.encode('utf8')]