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
355
356
356
fn write_file(file_skidout: &PathBuf, file_out: &PathBuf, convert_html: bool, tokens: &[Token]) {
357
357
//println!("{:?}", tokens);
358
358
-
let mut skid_output: String = "".to_string();
358
358
+
let mut skid_output: String = if convert_html {
359
359
+
"<!-- Generated by Skidmark, Do Not Edit! -->\n\n".into()
360
360
+
} else {
361
361
+
"".into()
362
362
+
};
359
363
for t in tokens {
360
364
skid_output.push(t.contents);
361
365
}