diff options
-rw-r--r-- | Cargo.toml | 4 | ||||
-rw-r--r-- | src/lib.rs (renamed from src/lib/lib.rs) | 4 | ||||
-rw-r--r-- | src/main.rs (renamed from src/cli/main.rs) | 0 |
3 files changed, 4 insertions, 4 deletions
@@ -4,11 +4,11 @@ version = "0.1.0" edition = "2018" [lib] -path = "src/lib/lib.rs" +path = "src/lib.rs" [[bin]] name = "gistatic" -path = "src/cli/main.rs" +path = "src/main.rs" [dependencies] mustache = "*" diff --git a/src/lib/lib.rs b/src/lib.rs index 311a11f..2bd4a2e 100644 --- a/src/lib/lib.rs +++ b/src/lib.rs @@ -1,8 +1,8 @@ -const t: &'static str = include_str!("../templates/log.html"); +const LOG: &'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 template = mustache::compile_str(LOG).unwrap(); let _data = mustache::MapBuilder::new() .insert_str("name", "Venus") .build(); diff --git a/src/cli/main.rs b/src/main.rs index cdb964d..cdb964d 100644 --- a/src/cli/main.rs +++ b/src/main.rs |