+3
-2
examples/06-serving-static-assets/README.md
+3
-2
examples/06-serving-static-assets/README.md
···
5
gleam test # Run the tests
6
```
7
8
-
This example shows how to route requests to different handlers based on the
9
-
request path and method.
10
11
This example is based off of the ["Hello, World!" example][hello], so read that
12
one first. The additions are detailed here and commented in the code.
···
5
gleam test # Run the tests
6
```
7
8
+
This example shows how to serve static assets. In this case we'll serve
9
+
a CSS file for page styling and a JavaScript file for updating the content
10
+
of the HTML page, but the same techniques can also be used for other file types.
11
12
This example is based off of the ["Hello, World!" example][hello], so read that
13
one first. The additions are detailed here and commented in the code.
+1
-2
examples/07-logging/README.md
+1
-2
examples/07-logging/README.md
···
5
gleam test # Run the tests
6
```
7
8
-
This example shows how to route requests to different handlers based on the
9
-
request path and method.
10
11
This example is based off of the ["routing" example][routing], so read that
12
one first. The additions are detailed here and commented in the code.