Function inline_assets::inline_file [−][src]
pub fn inline_file<P: AsRef<Path>>(
file_path: P,
config: Config
) -> 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
- Pass a config file to select what features to enable. UseDefault::default()
to enable everything