🚚 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 committed by Manuel Cillero
parent 908fd969e4
commit c5eeb67463
8 changed files with 32 additions and 32 deletions

View file

@ -117,13 +117,13 @@ use std::ops::Deref;
/// impl Theme for MyTheme {
/// fn before_render_page_body(&self, page: &mut Page) {
/// page
/// .alter_assets(ContextOp::AddStyleSheet(
/// .alter_assets(AssetsOp::AddStyleSheet(
/// StyleSheet::from("/css/normalize.css").with_version("8.0.1"),
/// ))
/// .alter_assets(ContextOp::AddStyleSheet(
/// .alter_assets(AssetsOp::AddStyleSheet(
/// StyleSheet::from("/css/basic.css").with_version(PAGETOP_VERSION),
/// ))
/// .alter_assets(ContextOp::AddStyleSheet(
/// .alter_assets(AssetsOp::AddStyleSheet(
/// StyleSheet::from("/mytheme/styles.css").with_version(env!("CARGO_PKG_VERSION")),
/// ));
/// }