🔥 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,4 +1,4 @@
|
|||
use crate::html::{html, Markup, Render};
|
||||
use crate::html::{html, Context, Markup};
|
||||
use crate::AutoDefault;
|
||||
|
||||
/// Un **Favicon** es un recurso gráfico que usa el navegador como icono asociado al sitio.
|
||||
|
@ -151,10 +151,12 @@ impl Favicon {
|
|||
});
|
||||
self
|
||||
}
|
||||
}
|
||||
|
||||
impl Render for Favicon {
|
||||
fn render(&self) -> Markup {
|
||||
/// Renderiza el **Favicon** completo con todas las etiquetas declaradas.
|
||||
///
|
||||
/// El parámetro `Context` se acepta por coherencia con el resto de *assets*, aunque en este
|
||||
/// caso es ignorado.
|
||||
pub fn render(&self, _cx: &mut Context) -> Markup {
|
||||
html! {
|
||||
@for item in &self.0 {
|
||||
(item)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue