Skip to main content

to_html_document

Function to_html_document 

Source
pub fn to_html_document(title: &str, body: &str) -> String
Expand description

Render body as a full HTML document with a minimal stylesheet. Used by crate::DocsServer to emit the right response for GET /<page>.html.