Update README.md

This commit is contained in:
Rob Wagner 2023-07-27 23:36:41 -04:00
parent 5a46f44cc9
commit 9427a65244
No known key found for this signature in database
GPG key ID: 53CCB4497B15CF61
2 changed files with 3 additions and 3 deletions

View file

@ -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]

View file

@ -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;