September 2023
Intermediate to advanced
470 pages
11h 12m
English
We’re finally happy with the code, at least for the moment, but we still need to connect the list renaming with the user interface.
At this point, we can make our user interface more pleasant to look at. As in a real project, to improve the aesthetics, we can’t continue to rely on HTML pages hardcoded in our application. Instead, we must switch to serving some static content, including CSS files, fonts, scripts, and so on.
We may also need to use HTML templates to generate our dynamic content.
Let’s start by adding a new /static route to serve static content from the resource folder of our application:
| | val httpHandler = routes( |
| | "/" bind GET to ::homePage, |
| | "/todo/{user}" bind GET to ::getAllLists, |
| | ... |
Read now
Unlock full access