You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+35-13Lines changed: 35 additions & 13 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -127,33 +127,55 @@ Once you have Mojo set up locally,
127
127
128
128
<palign="right">(<ahref="#readme-top">back to top</a>)</p>
129
129
130
-
### Using the client
130
+
### Serving static files
131
131
132
-
Create a file, e.g`client.mojo` with the following code:
132
+
The default welcome screen shows an example of how to serve files like images or HTML using Lightbug. Mojo has built-in `open`, `read` and `read_bytes` methods that you can use to read files from e.g. a `static` directory and serve them on a route:
0 commit comments