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() { }