diff options
| author | WriterV2 <primary-v2@protonmail.com> | 2022-08-23 18:18:10 +0200 |
|---|---|---|
| committer | WriterV2 <primary-v2@protonmail.com> | 2022-08-23 18:18:10 +0200 |
| commit | f08b050c240f10b29d5c8af5e80f042c115cd49b (patch) | |
| tree | 93439458ff887013bd34ce5ec85d9f3bf7361d8d /src/main.rs | |
| parent | 5d6943eca8f60e5a7b1422f9c9be2ca93b52104f (diff) | |
Add function to create tera context for stories
Diffstat (limited to 'src/main.rs')
| -rw-r--r-- | src/main.rs | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/main.rs b/src/main.rs index b3e907d..4be987f 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,6 +1,6 @@ use tera::{Context, Tera}; -use self::works::Work; +use crate::works::Works; mod works; @@ -29,4 +29,7 @@ fn main() { let stories = works::stories::Stories::new_from_file(file); println!("Stories: {:?}", stories); + + let context = stories.create_tera_context(); + println!("{:?}", context); } |
