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/works/mod.rs | |
| parent | 5d6943eca8f60e5a7b1422f9c9be2ca93b52104f (diff) | |
Add function to create tera context for stories
Diffstat (limited to 'src/works/mod.rs')
| -rw-r--r-- | src/works/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/works/mod.rs b/src/works/mod.rs index ab7bcf5..f399fdd 100644 --- a/src/works/mod.rs +++ b/src/works/mod.rs @@ -9,4 +9,6 @@ pub trait Works: for<'a> Deserialize<'a> { Err(err) => panic!("Trying to create work from JSON File - {:?}", err), } } + + fn create_tera_context(&self) -> Vec<tera::Context>; } |
