From 5de6732e7ed32b9c8747325aa21a36cc23a22d6b Mon Sep 17 00:00:00 2001 From: philipp Date: Sat, 17 Feb 2024 16:15:42 +0100 Subject: [PATCH] use appjs --- src/main.rs | 3 +++ 1 file changed, 3 insertions(+) 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");