1 2 3 4 5 6 7 8 9 10 11 12 13 14 15
pub mod template; pub mod json; pub mod txt; use anyhow::Result; use crate::project::{Project, OutputSpec}; pub trait Render { fn render<'a>(project: &'a Project, output: &'a OutputSpec) -> Result<&'a OutputSpec>; } pub use self::template::{DefaultTemaplate, RHtml, RTex}; pub use self::json::RJson;