🧑‍💻 Better names for with/alter/add_component_in

This commit is contained in:
Manuel Cillero 2023-11-20 20:03:24 +01:00
parent 62b32ebcee
commit 15d545897b
9 changed files with 27 additions and 22 deletions

View file

@ -16,7 +16,7 @@ async fn hello_name(
) -> ResultPage<Markup, FatalError> {
let name = path.into_inner();
Page::new(request)
.with_in("content", Html::with(html! { h1 { "Hello " (name) "!" } }))
.with_component_in("content", Html::with(html! { h1 { "Hello " (name) "!" } }))
.render()
}

View file

@ -11,7 +11,7 @@ impl ModuleTrait for HelloWorld {
async fn hello_world(request: service::HttpRequest) -> ResultPage<Markup, FatalError> {
Page::new(request)
.with_in("content", Html::with(html! { h1 { "Hello World!" } }))
.with_component_in("content", Html::with(html! { h1 { "Hello World!" } }))
.render()
}