aboutsummaryrefslogtreecommitdiff
path: root/src/lib/lib.rs
blob: 311a11f4a94ea33e27ea730781c6dfc577621b77 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
const t: &'static str = include_str!("../templates/log.html");

pub fn a_fn() -> i32 {
	// println!("log.html.tmpl: {}", t);
	let template = mustache::compile_str(t).unwrap();
	let _data = mustache::MapBuilder::new()
		.insert_str("name", "Venus")
		.build();

	let mut d2 = std::collections::HashMap::new();
	d2.insert("a", "b");
	template.render(&mut std::io::stdout(), &d2). unwrap();

	0
}

#[test]
fn a_test() {
}