+3
-2
examples/06-serving-static-assets/README.md
+3
-2
examples/06-serving-static-assets/README.md
···
5
5
gleam test # Run the tests
6
6
```
7
7
8
-
This example shows how to route requests to different handlers based on the
9
-
request path and method.
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.
10
11
11
12
This example is based off of the ["Hello, World!" example][hello], so read that
12
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
5
gleam test # Run the tests
6
6
```
7
7
8
-
This example shows how to route requests to different handlers based on the
9
-
request path and method.
8
+
This example shows how to log messages using the BEAM logger.
10
9
11
10
This example is based off of the ["routing" example][routing], so read that
12
11
one first. The additions are detailed here and commented in the code.