💥 Función located() pasa a at() en activos
This commit is contained in:
parent
a9a70fca46
commit
44550edafa
10 changed files with 13 additions and 13 deletions
|
|
@ -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"),
|
||||
));
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
{
|
||||
|
|
|
|||
|
|
@ -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>,
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue