Skip to main content

data_url

Function data_url 

Source
fn data_url(path: &Path) -> Result<String, String>
Expand description

Reads an image or font file as a data URL, typed by its extension. The file name is kept as a form-encoded name parameter, which browsers ignore, so the CSS editor can show it.