Skip to content

Commit 240a2c4

Browse files
committed
Added home.html file to one of the examples
1 parent 19148a5 commit 240a2c4

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

docs/examples.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,11 @@ By default ``Response.send_file()`` looks for the file in the server's ``root_pa
4848
:caption: examples/httpserver_handler_serves_file.py
4949
:linenos:
5050

51+
.. literalinclude:: ../examples/home.html
52+
:language: html
53+
:caption: www/home.html
54+
:linenos:
55+
5156
Tasks in the background
5257
-----------------------
5358

examples/home.html

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
<html lang="en">
2+
<head>
3+
<meta charset="UTF-8">
4+
<meta http-equiv="X-UA-Compatible" content="IE=edge">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Adafruit HTTPServer</title>
7+
</head>
8+
<body>
9+
<p>Hello from the <strong>CircuitPython HTTP Server!</strong></p>
10+
</body>
11+
</html>

0 commit comments

Comments
 (0)