diff --git a/src/main.rs b/src/main.rs index efe6984..bef1df5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -110,6 +110,9 @@ fn main() { let style = fs::read_to_string("templates/pico.min.css").unwrap(); fs::write(&format!("output/pico.min.css"), &style).expect("Unable to write file"); + let js = fs::read_to_string("templates/app.js").unwrap(); + fs::write(&format!("output/app.js"), &js).expect("Unable to write file"); + let mut index = fs::read_to_string("templates/index.html").unwrap(); index = index.replace("{{content}}", &li_of_files); fs::write(&format!("output/index.html"), &index).expect("Unable to write file");