mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-30 15:04:32 +01:00
Update README.md
This commit is contained in:
parent
5a46f44cc9
commit
9427a65244
2 changed files with 3 additions and 3 deletions
|
@ -7,7 +7,7 @@ repository = "https://github.com/robertwayne/axum-htmx"
|
|||
categories = ["web-programming"]
|
||||
keywords = ["axum", "htmx"]
|
||||
readme = "README.md"
|
||||
version = "0.2.0"
|
||||
version = "0.2.1"
|
||||
edition = "2021"
|
||||
|
||||
[features]
|
||||
|
|
|
@ -80,7 +80,7 @@ responses and partial responses _(as the page can be accessed directly or
|
|||
through a boosted anchor)_, so we look for the `HX-Boosted` header and extend
|
||||
from a `_partial.html` template instead.
|
||||
|
||||
```rs
|
||||
```rust
|
||||
use axum::response::IntoResponse;
|
||||
use axum_htmx::HxBoosted;
|
||||
|
||||
|
@ -95,7 +95,7 @@ async fn get_index(HxBoosted(boosted): HxBoosted) -> impl IntoResponse {
|
|||
|
||||
### Example: Router Guard
|
||||
|
||||
```rs
|
||||
```rust
|
||||
use axum::Router;
|
||||
use axum_htmx::HxRequestGuardLayer;
|
||||
|
||||
|
|
Loading…
Reference in a new issue