💥 Función located() pasa a at() en activos

This commit is contained in:
Manuel Cillero 2023-07-11 18:45:02 +02:00
parent a9a70fca46
commit 44550edafa
10 changed files with 13 additions and 13 deletions

View file

@ -30,7 +30,7 @@ impl ThemeTrait for Basic {
fn before_prepare_page(&self, page: &mut Page) {
page.alter_favicon(Some(Favicon::new().with_icon("/theme/favicon.ico")))
.alter_context(ContextOp::AddStyleSheet(
StyleSheet::located("/theme/css/normalize.min.css").with_version("8.0.1"),
StyleSheet::at("/theme/css/normalize.min.css").with_version("8.0.1"),
));
}
}

View file

@ -40,7 +40,7 @@ impl AssetsTrait for JavaScript {
}
impl JavaScript {
pub fn located<S>(path: S) -> Self
pub fn at<S>(path: S) -> Self
where
S: Into<String>,
{

View file

@ -38,7 +38,7 @@ impl AssetsTrait for StyleSheet {
}
impl StyleSheet {
pub fn located<S>(path: S) -> Self
pub fn at<S>(path: S) -> Self
where
S: Into<String>,
{