blob: 03e5ef22b9e8dff3c9ffa8bfebf466e80451b8bf (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
use crate::helpers::*;
use crate::posts::abstractions::post::Post;
use askama::Template;
#[derive(Template)]
#[template(path = "post.html.j2")]
pub struct PostView<P: Post> {
post: P,
}
impl<P: Post> PostView<P> {
pub fn with_post(post: P) -> Self {
Self { post }
}
}
|