natter/src/context/object.rs

23 lines
462 B
Rust
Raw Normal View History

use std::path::Path;
2023-10-24 00:04:44 -04:00
use serde::Serialize;
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 {}
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!()
}
}