From 9427a65244c78879015fcdf6eb5a57c1a7921fea Mon Sep 17 00:00:00 2001 From: Rob Wagner Date: Thu, 27 Jul 2023 23:36:41 -0400 Subject: [PATCH] Update README.md --- Cargo.toml | 2 +- README.md | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/Cargo.toml b/Cargo.toml index f2c80fd..16ca728 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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] diff --git a/README.md b/README.md index 5bb1597..ab9f846 100644 --- a/README.md +++ b/README.md @@ -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;