🚚 Renombra ContextOp a AssetsOp

El nombre anterior era ambiguo (podría referirse a cualquier operación
del contexto); `AssetsOp` describe exactamente lo que hace: operar sobre
los recursos del documento.
This commit is contained in:
Manuel Cillero 2026-03-21 11:12:46 +01:00
parent 3e1bc0fb0e
commit c3feff9efd
8 changed files with 32 additions and 32 deletions

View file

@ -151,12 +151,12 @@ impl Theme for Bootsier {
}
fn before_render_page_body(&self, page: &mut Page) {
page.alter_assets(ContextOp::AddStyleSheet(
page.alter_assets(AssetsOp::AddStyleSheet(
StyleSheet::from("/bootsier/bs/bootstrap.min.css")
.with_version(BOOTSTRAP_VERSION)
.with_weight(-90),
))
.alter_assets(ContextOp::AddJavaScript(
.alter_assets(AssetsOp::AddJavaScript(
JavaScript::defer("/bootsier/js/bootstrap.bundle.min.js")
.with_version(BOOTSTRAP_VERSION)
.with_weight(-90),