feat(template-askama): add Askama template adapter for diary entries

This commit is contained in:
2026-05-04 02:04:52 +02:00
parent c4b39c9410
commit b6a7cf9417
7 changed files with 227 additions and 1 deletions

View File

@@ -0,0 +1 @@
pub mod ports;

View 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>;
}