use crate::helpers::*; use crate::posts::abstractions::post::Post; use askama::Template; #[derive(Template)] #[template(path = "post.html")] pub struct PostView { post: P, } impl PostView

{ pub fn with_post(post: P) -> Self { Self { post } } }