Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
levkk committed Oct 18, 2024
1 parent 5367071 commit a15fb57
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
2 changes: 1 addition & 1 deletion docs/docs/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ async fn main() -> Result<(), http::Error> {
}
```

Rwf uses the `log` crate for logging. `Logger::init()` automatically configures it for your app using `env_logger`, but if you prefer, you can configure logging yourself
Rwf uses the `log` crate for logging. `Logger::init()` automatically configures it for your app using `tracing-subscriber`, but if you prefer, you can configure logging yourself
using the crate of your choosing.

Launching the server can be done with Cargo:
Expand Down
16 changes: 16 additions & 0 deletions docs/docs/views/index.md
Original file line number Diff line number Diff line change
@@ -1 +1,17 @@
# Views basics

Rwf comes with a [templating](templates/) library that can generate dynamic pages. Dynamic templates allow you to generate unique HTML pages on the fly, and libraries like [Turbo](turbo) can use it in a way that feels like a native frontend application.

## What are views?

Views are the **V** in MVC: they control what your users see and how they experience your web app. Separating views from [controllers](../controllers/) allows them to reuse similar parts of your web app on different pages.


## Using JavaScript frontends

If you prefer to build your frontend with JavaScript libraries like React or Vue, take a look at Rwf's [REST](../controllers/REST/) API documentation. While useful, Rwf templates are not required to build web applications.

## Learn more

- [Templates](templates/)
- [Turbo](turbo/)

0 comments on commit a15fb57

Please sign in to comment.