+fn render_column_headers(columns: &[String]) -> String {
+ // TODO: Escape HTML special characters
+ String::from("<tr class=\"key\"><th></th>")
+ + &columns.iter().fold(String::new(), |mut acc, c| {
+ write!(&mut acc, "<th id=\"{c}\"><div><div>{c}</div></div></th>").unwrap();
+ acc
+ })
+ + "</tr>\n"
+}
+