Skip to main content

write_html

Function write_html 

pub fn write_html<W: Write, T: Serialize>(
    rows: &[T],
    w: &mut W,
    title: &str,
    repo_path: &str,
    generated_at: &str,
) -> Result<()>
Expand description

Render any analysis row collection as a self-contained HTML report. rows is serialized to JSON and embedded; the in-template JS reads it to render the table at page load.

title is shown in the <title> tag and as the H1 header. repo_path and generated_at are shown in the metadata block.