Skip to main content

embed_files

Function embed_files 

Source
pub fn embed_files(css: &str) -> Result<String, String>
Expand description

Embeds the local files that theme CSS names. Each @import of a local CSS file is replaced with that file’s contents, and each url() naming a local file becomes a data URL. Absolute paths and file: URLs are local, and inside an imported file, relative paths resolve against its folder. Other URLs are left for validate to reject.