♻️ Cambia en prepare_component() el tipo devuelto
Elimina `PrepareMarkup` como tipo de retorno de prepare_component() y de
`FnPrepareRender`, sustituyéndolo directamente por `Markup`. Se elimina
una capa innecesaria, ya que html! {} y html! { ... } cubren todos los
casos que ofrecía `PrepareMarkup`.
This commit is contained in:
parent
6203a02b89
commit
908fd969e4
28 changed files with 241 additions and 335 deletions
|
|
@ -9,8 +9,8 @@ use crate::AutoDefault;
|
|||
///
|
||||
/// ```rust
|
||||
/// # use pagetop::prelude::*;
|
||||
/// fn render_logo(cx: &mut Context) -> PrepareMarkup {
|
||||
/// PrepareMarkup::With(html! {
|
||||
/// fn render_logo(cx: &mut Context) -> Markup {
|
||||
/// html! {
|
||||
/// div class="logo_color" {
|
||||
/// (PageTopSvg::Color.render(cx))
|
||||
/// }
|
||||
|
|
@ -23,7 +23,7 @@ use crate::AutoDefault;
|
|||
/// div class="line_red" {
|
||||
/// (PageTopSvg::LineRGB(255, 0, 0).render(cx))
|
||||
/// }
|
||||
/// })
|
||||
/// }
|
||||
/// };
|
||||
/// ```
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue