tangled
alpha
login
or
join now
tholps.site
/
skidmark
0
fork
atom
Tholp's bespoke website generator
0
fork
atom
overview
issues
pulls
pipelines
Add "do not edit" disclaimer to generated html
tholps.site
4 months ago
2e4f3cc5
26653810
+5
-1
1 changed file
expand all
collapse all
unified
split
src
main.rs
+5
-1
src/main.rs
···
355
356
fn write_file(file_skidout: &PathBuf, file_out: &PathBuf, convert_html: bool, tokens: &[Token]) {
357
//println!("{:?}", tokens);
358
-
let mut skid_output: String = "".to_string();
0
0
0
0
359
for t in tokens {
360
skid_output.push(t.contents);
361
}
···
355
356
fn write_file(file_skidout: &PathBuf, file_out: &PathBuf, convert_html: bool, tokens: &[Token]) {
357
//println!("{:?}", tokens);
358
+
let mut skid_output: String = if convert_html {
359
+
"<!-- Generated by Skidmark, Do Not Edit! -->\n\n".into()
360
+
} else {
361
+
"".into()
362
+
};
363
for t in tokens {
364
skid_output.push(t.contents);
365
}