feat(template-askama): add Askama template adapter for diary entries
This commit is contained in:
1
crates/presentation/src/lib.rs
Normal file
1
crates/presentation/src/lib.rs
Normal file
@@ -0,0 +1 @@
|
||||
pub mod ports;
|
||||
5
crates/presentation/src/ports.rs
Normal file
5
crates/presentation/src/ports.rs
Normal file
@@ -0,0 +1,5 @@
|
||||
use domain::models::{DiaryEntry, collections::Paginated};
|
||||
|
||||
pub trait HtmlRenderer: Send + Sync {
|
||||
fn render_diary_page(&self, data: &Paginated<DiaryEntry>) -> Result<String, String>;
|
||||
}
|
||||
Reference in New Issue
Block a user