Feeding the templates into the renderer integration.
This commit is contained in:
@@ -1,14 +1,12 @@
|
||||
use std::path::PathBuf;
|
||||
|
||||
use serde::Serialize;
|
||||
|
||||
use crate::error::CustomError;
|
||||
|
||||
pub(crate) trait RendererIntegration {
|
||||
fn load_templates<I, P>(&mut self, dust_templates: I) -> Result<(), CustomError>
|
||||
fn load_template<N, C>(&mut self, name: N, contents: C) -> Result<(), CustomError>
|
||||
where
|
||||
I: Iterator<Item = P>,
|
||||
P: Into<PathBuf>;
|
||||
N: Into<String>,
|
||||
C: Into<String>;
|
||||
|
||||
fn render<C>(&self, context: C) -> Result<String, crate::error::CustomError>
|
||||
where
|
||||
|
||||
Reference in New Issue
Block a user