🧑💻 Better names for with/alter/add_component_in
This commit is contained in:
parent
62b32ebcee
commit
15d545897b
9 changed files with 27 additions and 22 deletions
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -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()
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue