✨ Reintroduce web response type for full pages
This commit is contained in:
parent
04a365797d
commit
b2b0d8bd3e
40 changed files with 1516 additions and 249 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue