🔥 Elimina Render
para usar siempre el contexto
This commit is contained in:
parent
ddf78c2de8
commit
e3ca6079ff
12 changed files with 205 additions and 146 deletions
|
@ -1,7 +1,7 @@
|
|||
//! HTML en código.
|
||||
|
||||
mod maud;
|
||||
pub use maud::{display, html, html_private, Escaper, Markup, PreEscaped, Render, DOCTYPE};
|
||||
pub use maud::{display, html, html_private, Escaper, Markup, PreEscaped, DOCTYPE};
|
||||
|
||||
// HTML DOCUMENT ASSETS ****************************************************************************
|
||||
|
||||
|
@ -119,11 +119,9 @@ impl PrepareMarkup {
|
|||
PrepareMarkup::With(markup) => markup.is_empty(),
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
impl Render for PrepareMarkup {
|
||||
/// Integra el renderizado fácilmente en la macro [`html!`].
|
||||
fn render(&self) -> Markup {
|
||||
pub fn render(&self) -> Markup {
|
||||
match self {
|
||||
PrepareMarkup::None => html! {},
|
||||
PrepareMarkup::Escaped(text) => html! { (text) },
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue