💡 Corrige ejemplos de uso del componente Html

This commit is contained in:
Manuel Cillero 2025-08-03 11:57:01 +02:00
parent c680b94995
commit 126b31a7ed

View file

@ -74,12 +74,12 @@ impl InRegion {
/// use pagetop::prelude::*; /// use pagetop::prelude::*;
/// ///
/// // Banner global, en la región por defecto de cualquier página. /// // Banner global, en la región por defecto de cualquier página.
/// InRegion::Content.add(Child::with(Html::with( /// InRegion::Content.add(Child::with(Html::with(|_|
/// html! { ("🎉 ¡Bienvenido!") } /// html! { ("🎉 ¡Bienvenido!") }
/// ))); /// )));
/// ///
/// // Texto en la región "sidebar". /// // Texto en la región "sidebar".
/// InRegion::Named("sidebar").add(Child::with(Html::with( /// InRegion::Named("sidebar").add(Child::with(Html::with(|_|
/// html! { ("Publicidad") } /// html! { ("Publicidad") }
/// ))); /// )));
/// ``` /// ```