Passing parameters
In Chapter 3, Handling HTTP Requests, we built a couple of basic views. However, our views were just serving a couple of basic GET views that just display a string. Now that we are familiar with basic views, we are going to pass parameters and data into the view. Our to
do
views module will take the following structure:
├── auth │   ├── login.rs │   ├── logout.rs │   └── mod.rs ├── mod.rs ├── path.rs └── to_do     ├── create.rs     └── mod.rs
To demonstrate this, we are going to build a basic view that takes a parameter from the URL and creates a to do item. To do this, we will have to do the following:
- Load the current state of the to do item list.
- Get the...