mirror of
https://github.com/robertwayne/axum-htmx
synced 2024-12-27 18:59:32 +01:00
Fix in hx_boosted_by example
This commit is contained in:
parent
7a8a411d29
commit
f941f00e34
1 changed files with 2 additions and 2 deletions
|
@ -199,12 +199,12 @@ use axum_htmx::hx_boosted_by;
|
||||||
|
|
||||||
#[hx_boosted_by(with_layout)]
|
#[hx_boosted_by(with_layout)]
|
||||||
async fn get_hello(Path(name): Path<String>) -> Html<String> {
|
async fn get_hello(Path(name): Path<String>) -> Html<String> {
|
||||||
Html(format!("Hello, {}!", name)
|
Html(format!("Hello, {}!", name))
|
||||||
}
|
}
|
||||||
|
|
||||||
#[hx_boosted_by(with_layout)]
|
#[hx_boosted_by(with_layout)]
|
||||||
async fn get_bye(Path(name): Path<String>) -> Html<String> {
|
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> {
|
fn with_layout(Html(partial): Html<String>) -> Html<String> {
|
||||||
|
|
Loading…
Reference in a new issue