This commit is contained in:
@ -92,7 +92,9 @@ fn main() {
|
||||
let content = get_content(&path);
|
||||
|
||||
let template = fs::read_to_string("templates/index.html").unwrap();
|
||||
let site = template.replace("{{content}}", &content);
|
||||
let site = template
|
||||
.replace("{{content}}", &content)
|
||||
.replace("{{title}}", &law_name);
|
||||
|
||||
fs::write(&format!("output/{law_name}.html"), &site).expect("Unable to write file");
|
||||
}
|
||||
|
Reference in New Issue
Block a user