use serde::Serialize; use crate::error::CustomError; pub(crate) trait RendererIntegration { fn load_template(&mut self, name: N, contents: C) -> Result<(), CustomError> where N: Into, C: AsRef; fn render(&self, context: C) -> Result where C: Serialize; }