Skip to main content

render_blob_page

Function render_blob_page 

Source
fn render_blob_page(
    repo_path: &Path,
    filename: &str,
    file_path: &str,
    oid: ObjectId,
    commit_hash: &str,
    depth: usize,
    page_dir: &Path,
    tera: &Tera,
    project_name: &str,
    lang: &Option<String>,
    clone_url: &Option<String>,
    ss: &SyntaxSet,
    theme: &Theme,
) -> Result<()>
Expand description

Write one syntax-highlighted blob page to page_dir/<name>.html.