Skip to main content

render_document

Function render_document 

Source
pub fn render_document<H: RenderHooks>(doc: &Document, hooks: &H) -> String
Expand description

Render a Document to an HTML string using the given hooks.

ยงPanics (debug only)

If any URL is still Url::Unresolved when the renderer reaches it. visit_urls_mut must run before this function. In release builds the raw unresolved string is emitted as-is to avoid crashing on a bug.