docs(api): hide raw render extension shims

Keep compatibility helpers available while steering author docs toward generated lower-aware put/append/replace commands.

req: dx/006
This commit is contained in:
slhx agent
2026-06-02 03:12:49 +02:00
parent d7462fd011
commit a6c88b9226
+10
View File
@@ -17,6 +17,11 @@ pub fn render_html(view: &impl hemplate::Hemplate) -> SafeHtml {
render(view) render(view)
} }
/// Compatibility shim for raw slot rendering.
///
/// Prefer generated view-module commands such as `ui::put(slot, &view)` so
/// generated resource lowering stays attached to the view boundary. req: dx/006
#[doc(hidden)]
pub trait RenderSlotExt { pub trait RenderSlotExt {
fn render(self, view: &impl hemplate::Hemplate) -> Effect; fn render(self, view: &impl hemplate::Hemplate) -> Effect;
@@ -34,6 +39,11 @@ impl<T> RenderSlotExt for Slot<T> {
} }
} }
/// Compatibility shim for raw keyed slot rendering.
///
/// Prefer generated view-module commands such as `ui::append(slot, key, &view)`
/// so generated resource lowering stays attached to the view boundary. req: dx/006
#[doc(hidden)]
pub trait RenderKeyedSlotExt<K> { pub trait RenderKeyedSlotExt<K> {
fn append(self, key: K, view: &impl hemplate::Hemplate) -> Effect; fn append(self, key: K, view: &impl hemplate::Hemplate) -> Effect;
fn prepend(self, key: K, view: &impl hemplate::Hemplate) -> Effect; fn prepend(self, key: K, view: &impl hemplate::Hemplate) -> Effect;