Skip to main content

inject_dev_html

Function inject_dev_html 

Source
pub fn inject_dev_html(html: &str) -> String
Expand description

Post-process a served HTML body: inject the reload-client script + editor toggle + editor island scripts/styles immediately before </body>. Dev-only; never run by docgen build. Pure string fn so it is unit-testable.