mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-11-29 22:54: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"]
|
categories = ["web-programming"]
|
||||||
keywords = ["axum", "htmx"]
|
keywords = ["axum", "htmx"]
|
||||||
readme = "README.md"
|
readme = "README.md"
|
||||||
version = "0.2.0"
|
version = "0.2.1"
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
|
|
||||||
[features]
|
[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
|
through a boosted anchor)_, so we look for the `HX-Boosted` header and extend
|
||||||
from a `_partial.html` template instead.
|
from a `_partial.html` template instead.
|
||||||
|
|
||||||
```rs
|
```rust
|
||||||
use axum::response::IntoResponse;
|
use axum::response::IntoResponse;
|
||||||
use axum_htmx::HxBoosted;
|
use axum_htmx::HxBoosted;
|
||||||
|
|
||||||
|
@ -95,7 +95,7 @@ async fn get_index(HxBoosted(boosted): HxBoosted) -> impl IntoResponse {
|
||||||
|
|
||||||
### Example: Router Guard
|
### Example: Router Guard
|
||||||
|
|
||||||
```rs
|
```rust
|
||||||
use axum::Router;
|
use axum::Router;
|
||||||
use axum_htmx::HxRequestGuardLayer;
|
use axum_htmx::HxRequestGuardLayer;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue