Starting a struct for what will be passed as the context into dust.
This commit is contained in:
parent
a510d0809f
commit
b72aec9d20
@ -1,2 +1,3 @@
|
||||
mod definition;
|
||||
mod render_context;
|
||||
pub(crate) use definition::BlogPost;
|
||||
|
8
src/blog_post/render_context.rs
Normal file
8
src/blog_post/render_context.rs
Normal file
@ -0,0 +1,8 @@
|
||||
use serde::Serialize;
|
||||
|
||||
#[derive(Debug, Serialize)]
|
||||
#[serde(tag = "type")]
|
||||
#[serde(rename = "blog_post")]
|
||||
pub(crate) struct RenderBlogPost {
|
||||
id: String,
|
||||
}
|
Loading…
Reference in New Issue
Block a user