pub struct Renderer { /* private fields */ }Expand description
HtmlRenderer is responsible for the process of converting the site tree into the final HTML output. It does this by managing a queue of tokens to be rendered and delegating the rendering process to different modules.
Implementations§
Source§impl Renderer
impl Renderer
pub fn new() -> Renderer
pub fn add_module(&mut self, module: impl RendererModule + 'static)
Sourcepub fn init(&mut self, site_tree: &mut SiteTree)
pub fn init(&mut self, site_tree: &mut SiteTree)
Will run init on all modules, will remove modules if it fails
Sourcepub fn after_init(&mut self, site_tree: &SiteTree)
pub fn after_init(&mut self, site_tree: &SiteTree)
Will run after_init on all modules, will remove modules if it fails
Auto Trait Implementations§
impl Freeze for Renderer
impl !RefUnwindSafe for Renderer
impl !Send for Renderer
impl !Sync for Renderer
impl Unpin for Renderer
impl !UnwindSafe for Renderer
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