Function inline_assets::inline_file[][src]

pub fn inline_file<P: AsRef<Path>>(
    file_path: P,
    inline_fonts: bool
) -> Result<String, FilePathError>

Returns a Result<String, FilePathError> of the html file at file path with all the assets inlined.

Arguments

  • file_path - The path of the html file.
  • inline_fonts - Whether or not to inline fonts in the css as base64.