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:
@@ -17,6 +17,11 @@ pub fn render_html(view: &impl hemplate::Hemplate) -> SafeHtml {
|
||||
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 {
|
||||
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> {
|
||||
fn append(self, key: K, view: &impl hemplate::Hemplate) -> Effect;
|
||||
fn prepend(self, key: K, view: &impl hemplate::Hemplate) -> Effect;
|
||||
|
||||
Reference in New Issue
Block a user