+1
-1
@@ -19,7 +19,7 @@ fn create_index(content: &str) {
|
||||
let mut index = fs::read_to_string("templates/index.html").unwrap();
|
||||
index = index.replace("{{content}}", content);
|
||||
let index = Parts::new().perform(index);
|
||||
fs::write("output/index.html", &index).expect("Unable to write file");
|
||||
fs::write("output/index.html", index).expect("Unable to write file");
|
||||
}
|
||||
|
||||
/// Copies all files from `templates/static` to `output`
|
||||
|
||||
Reference in New Issue
Block a user