Skip to main content

render_page_html

Function render_page_html 

Source
pub fn render_page_html(
    site: &DocSite,
    page: &DocPage,
    generated_at: &str,
) -> String
Expand description

Renders a single DocPage into a self-contained static HTML document using default build options.

§Arguments

  • &DocSite - Parent site for navigation links.
  • &DocPage - Page to render.
  • &str - Build timestamp string.

§Returns

  • String - Complete HTML document string.