aboutsummaryrefslogtreecommitdiff
path: root/src/lib.rs
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2021-06-04 12:19:00 -0300
committerEuAndreh <eu@euandre.org>2021-06-04 12:19:50 -0300
commit8b3e3390ba5d166ccf5b9ea8dad648f4d27fb81d (patch)
tree491f12f767b116e618644c48ad415f1935151fd5 /src/lib.rs
parentMakefile: Use $(NAME) (diff)
downloadgistatic-8b3e3390ba5d166ccf5b9ea8dad648f4d27fb81d.tar.gz
gistatic-8b3e3390ba5d166ccf5b9ea8dad648f4d27fb81d.tar.xz
src/: Remove subdirectories
Diffstat (limited to 'src/lib.rs')
-rw-r--r--src/lib.rs19
1 files changed, 19 insertions, 0 deletions
diff --git a/src/lib.rs b/src/lib.rs
new file mode 100644
index 0000000..2bd4a2e
--- /dev/null
+++ b/src/lib.rs
@@ -0,0 +1,19 @@
+const LOG: &'static str = include_str!("templates/log.html");
+
+pub fn a_fn() -> i32 {
+ // println!("log.html.tmpl: {}", t);
+ let template = mustache::compile_str(LOG).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() {
+}