Fix in hx_boosted_by example

This commit is contained in:
Dan Alekseev 2024-04-06 12:03:43 +04:00
parent 7a8a411d29
commit f941f00e34

View file

@ -199,12 +199,12 @@ use axum_htmx::hx_boosted_by;
#[hx_boosted_by(with_layout)]
async fn get_hello(Path(name): Path<String>) -> Html<String> {
Html(format!("Hello, {}!", name)
Html(format!("Hello, {}!", name))
}
#[hx_boosted_by(with_layout)]
async fn get_bye(Path(name): Path<String>) -> Html<String> {
Html(format!("Bye, {}!", name)
Html(format!("Bye, {}!", name))
}
fn with_layout(Html(partial): Html<String>) -> Html<String> {