🚧 [context] Define un trait común de contexto
This commit is contained in:
parent
1e03704e2b
commit
bc07afb746
8 changed files with 356 additions and 260 deletions
|
|
@ -1,4 +1,4 @@
|
|||
use crate::html::assets::AssetsTrait;
|
||||
use crate::html::assets::Asset;
|
||||
use crate::html::{html, Markup, Render};
|
||||
use crate::{join, join_pair, AutoDefault, Weight};
|
||||
|
||||
|
|
@ -137,7 +137,7 @@ impl JavaScript {
|
|||
}
|
||||
}
|
||||
|
||||
impl AssetsTrait for JavaScript {
|
||||
impl Asset for JavaScript {
|
||||
// Para *scripts* externos es la ruta; para *scripts* embebidos, un identificador.
|
||||
fn name(&self) -> &str {
|
||||
match &self.source {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue