pub trait TemplateEngineCanHandleData<D>: TemplateEngine {
fn render<'r, 'a>(
&'r self,
id: &'r Self::Id,
data: &'r D,
additional_cids: AdditionalCIds<'r>
) -> Result<String, Error>;
}Expand description
Additional trait a template engine needs to implement for the types it can process as input.
This could for example be implemented in a wild card impl for the template engine for
any data D which implements Serialize.