pub struct IframeRenderer;Expand description
Renderer for local HTML embeds: ![[file.html?query#frag|WxH]] → <iframe>.
?queryis appended to the iframesrcas URL query.#fragmentis appended as URL fragment (order: path?query#frag).|Wor|WxHbecomes iframe width/height attributes viaSizing.- No sandbox attribute is set by default — noted as a follow-up.
Trait Implementations§
Source§impl Debug for IframeRenderer
impl Debug for IframeRenderer
Source§impl EmbedRenderer for IframeRenderer
impl EmbedRenderer for IframeRenderer
Source§fn extensions(&self) -> &[&'static str]
fn extensions(&self) -> &[&'static str]
Extensions this renderer claims (lowercase, without leading dot).
Source§fn render(&self, embed: &ParsedEmbed<'_>) -> RenderedEmbed
fn render(&self, embed: &ParsedEmbed<'_>) -> RenderedEmbed
Render the embed. Must be pure; moss-core is I/O-free.
Source§fn head_assets(&self) -> &[&'static str]
fn head_assets(&self) -> &[&'static str]
Page-level HTML fragments this renderer needs in
<head>, injected
once per page that contains at least one embed from this renderer. Read moreAuto Trait Implementations§
impl Freeze for IframeRenderer
impl RefUnwindSafe for IframeRenderer
impl Send for IframeRenderer
impl Sync for IframeRenderer
impl Unpin for IframeRenderer
impl UnsafeUnpin for IframeRenderer
impl UnwindSafe for IframeRenderer
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more