Reintroduce web response type for full pages

This commit is contained in:
Manuel Cillero 2024-11-24 09:23:24 +01:00
parent 04a365797d
commit b2b0d8bd3e
40 changed files with 1516 additions and 249 deletions

View file

@ -43,7 +43,7 @@ impl PackageTrait for HelloWorld {
async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
Page::new(request)
.with_component(Html::with(html! { h1 { "Hello World!" } }))
.with_body(PrepareMarkup::With(html! { h1 { "Hello World!" } }))
.render()
}