forked from Zynh0722/nyazoom
simpler render syntax
parent
c9aac19f8b
commit
7f62c9b6a8
|
@ -28,9 +28,7 @@ async fn link(
|
|||
{
|
||||
return Ok(Html(ssr::render({
|
||||
let record = record.clone();
|
||||
|| {
|
||||
leptos::view! { <DownloadLinkPage id=id record=record /> }
|
||||
}
|
||||
|| leptos::view! { <DownloadLinkPage id=id record=record /> }
|
||||
})));
|
||||
}
|
||||
}
|
||||
|
|
|
@ -92,9 +92,7 @@ async fn upload_to_zip(
|
|||
.status(200)
|
||||
.header("Content-Type", "text/html")
|
||||
.header("HX-Push-Url", format!("/link/{}", &id))
|
||||
.body(ssr::render(|| {
|
||||
leptos::view! { <LinkView id record /> }
|
||||
}))
|
||||
.body(ssr::render(|| leptos::view! { <LinkView id record /> }))
|
||||
.unwrap();
|
||||
|
||||
Ok(response)
|
||||
|
|
Loading…
Reference in New Issue