2023-10-27 12:47:12 -04:00
|
|
|
use std::path::Path;
|
|
|
|
|
2023-10-24 00:04:44 -04:00
|
|
|
use serde::Serialize;
|
|
|
|
|
2023-10-27 12:47:12 -04:00
|
|
|
use crate::blog_post::Object;
|
|
|
|
use crate::config::Config;
|
|
|
|
use crate::error::CustomError;
|
|
|
|
|
2023-10-24 00:04:44 -04:00
|
|
|
#[derive(Debug, Serialize)]
|
|
|
|
#[serde(untagged)]
|
|
|
|
pub(crate) enum RenderObject {}
|
2023-10-27 12:47:12 -04:00
|
|
|
|
|
|
|
impl RenderObject {
|
|
|
|
pub(crate) fn new<D: AsRef<Path>, F: AsRef<Path>>(
|
|
|
|
config: &Config,
|
|
|
|
output_directory: D,
|
|
|
|
output_file: F,
|
|
|
|
section: &Object,
|
|
|
|
) -> Result<RenderObject, CustomError> {
|
|
|
|
todo!()
|
|
|
|
}
|
|
|
|
}
|