use appjs
All checks were successful
CI/CD Pipeline / deploy-main (push) Successful in 7s

This commit is contained in:
philipp 2024-02-17 16:15:42 +01:00
parent 933341f09f
commit 5de6732e7e

View File

@ -110,6 +110,9 @@ fn main() {
let style = fs::read_to_string("templates/pico.min.css").unwrap(); let style = fs::read_to_string("templates/pico.min.css").unwrap();
fs::write(&format!("output/pico.min.css"), &style).expect("Unable to write file"); 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(); let mut index = fs::read_to_string("templates/index.html").unwrap();
index = index.replace("{{content}}", &li_of_files); index = index.replace("{{content}}", &li_of_files);
fs::write(&format!("output/index.html"), &index).expect("Unable to write file"); fs::write(&format!("output/index.html"), &index).expect("Unable to write file");