Skip to main content

document_format_for_path

Function document_format_for_path 

Source
pub fn document_format_for_path(
    path: &str,
    language: Option<&str>,
) -> Option<DocumentFormat>
Expand description

Honor a supplied language; infer from the extension only when no language is supplied.