From 8f5034b8b7f31a8fb8864728942a6858467c6c87 Mon Sep 17 00:00:00 2001 From: WriterV2 Date: Sat, 4 Feb 2023 14:06:12 +0100 Subject: Add works method to render single work pages --- src/works/mod.rs | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/works/mod.rs') 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( -- cgit v1.2.3