Introduce the corresponding non-render types.

This commit is contained in:
Tom Alexander
2023-10-24 00:36:08 -04:00
parent 3b472a9e96
commit 2b7a19a1d4
19 changed files with 91 additions and 10 deletions

23
src/context/section.rs Normal file
View File

@@ -0,0 +1,23 @@
use std::path::Path;
use serde::Serialize;
use crate::blog_post::Section;
use crate::config::Config;
use crate::error::CustomError;
#[derive(Debug, Serialize)]
#[serde(tag = "type")]
#[serde(rename = "section")]
pub(crate) struct RenderSection {}
impl RenderSection {
pub(crate) fn new<D: AsRef<Path>, F: AsRef<Path>>(
config: &Config,
output_directory: D,
output_file: F,
section: &Section,
) -> Result<RenderSection, CustomError> {
todo!()
}
}