🩹 Corrige doc y código por cambios en Page
This commit is contained in:
parent
3ba71dbe45
commit
2a4d6a7890
4 changed files with 6 additions and 6 deletions
|
@ -60,8 +60,8 @@ impl Extension for HelloWorld {
|
|||
}
|
||||
|
||||
async fn hello_world(request: HttpRequest) -> ResultPage<Markup, ErrorPage> {
|
||||
Page::new(Some(request))
|
||||
.with_component(Html::with(move |_| html! { h1 { "Hello World!" } }))
|
||||
Page::new(request)
|
||||
.add_component(Html::with(move |_| html! { h1 { "Hello World!" } }))
|
||||
.render()
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue