diff --git a/src/web.rs b/src/web.rs index 139f5d6..8d832e8 100644 --- a/src/web.rs +++ b/src/web.rs @@ -103,9 +103,19 @@ struct Asset; fn embedz() -> Result { let mut w = Vec::new(); - write!(w, "").unwrap(); + write!( + w, + r#""# + ) + .unwrap(); for path in Asset::iter() { - write!(w, r#"
{0}
"#, path).unwrap(); + write!( + w, + r#"
sizepath
{0}{1}"#, + Asset::get(&path).unwrap().len(), + path + ) + .unwrap(); } Ok(warp::http::Response::builder() .header("Content-Type", "text/html")