summaryrefslogtreecommitdiff
path: root/src/works/mod.rs
diff options
context:
space:
mode:
authorWriterV2 <primary-v2@protonmail.com>2023-02-04 14:06:12 +0100
committerWriterV2 <primary-v2@protonmail.com>2023-02-04 14:06:12 +0100
commit8f5034b8b7f31a8fb8864728942a6858467c6c87 (patch)
treeb302e2c437a289d15663bf8c7faa632652d8a00f /src/works/mod.rs
parent63dbe5a65d7eb4a81d557d31f2983a512ba2b621 (diff)
Add works method to render single work pages
Diffstat (limited to 'src/works/mod.rs')
-rw-r--r--src/works/mod.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/works/mod.rs b/src/works/mod.rs
index 6cb9331..1d0b3de 100644
--- a/src/works/mod.rs
+++ b/src/works/mod.rs
@@ -21,6 +21,9 @@ pub trait Works: for<'a> Deserialize<'a> + Serialize {
Ok(context)
}
+ // render page for every work
+ fn render_single_pages(&self, tera_instance: &tera::Tera, template_name: &str) -> Result<()>;
+
// render corresponding overview HTML template
// with its tera context
fn render_overview_page(