|
|
@ -97,9 +97,8 @@ impl ToHtml for Section {
|
|
|
|
fn to_html(&self) -> String {
|
|
|
|
fn to_html(&self) -> String {
|
|
|
|
let inner = self
|
|
|
|
let inner = self
|
|
|
|
.elements
|
|
|
|
.elements
|
|
|
|
.par_iter()
|
|
|
|
.iter()
|
|
|
|
.map(|e| e.to_html())
|
|
|
|
.fold("".to_string(), |a, b| format!("{}{}", a, b.to_html()));
|
|
|
|
.reduce(|| "".to_string(), |a, b| format!("{}{}", a, b));
|
|
|
|
|
|
|
|
format!("<section>{}{}</section>", self.header.to_html(), inner)
|
|
|
|
format!("<section>{}{}</section>", self.header.to_html(), inner)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|