Tholp's bespoke website generator

Add "do not edit" disclaimer to generated html

Changed files
+5 -1
src
+5 -1
src/main.rs
···
fn write_file(file_skidout: &PathBuf, file_out: &PathBuf, convert_html: bool, tokens: &[Token]) {
//println!("{:?}", tokens);
-
let mut skid_output: String = "".to_string();
for t in tokens {
skid_output.push(t.contents);
}
···
fn write_file(file_skidout: &PathBuf, file_out: &PathBuf, convert_html: bool, tokens: &[Token]) {
//println!("{:?}", tokens);
+
let mut skid_output: String = if convert_html {
+
"<!-- Generated by Skidmark, Do Not Edit! -->\n\n".into()
+
} else {
+
"".into()
+
};
for t in tokens {
skid_output.push(t.contents);
}