Function inline_assets::inline_html_string [−][src]
pub fn inline_html_string<P: AsRef<Path>>(
html: &str,
root_path: P,
config: Config
) -> Result<String, FilePathError>
Returns a Result<String, FilePathError>
with all the assets linked in the the html string inlined.
Arguments
html
- The html string.root_path
- The root all relative paths in the html will be evaluated with, usually this is the folder the html file is in.config
- Pass a config file to select what features to enable. UseDefault::default()
to enable everything