Feeding the templates into the renderer integration.
This commit is contained in:
@@ -4,13 +4,18 @@ use serde::Serialize;
|
||||
|
||||
pub(crate) struct DusterRenderer {}
|
||||
|
||||
impl DusterRenderer {
|
||||
pub(crate) fn new() -> DusterRenderer {
|
||||
DusterRenderer {}
|
||||
}
|
||||
}
|
||||
|
||||
impl RendererIntegration for DusterRenderer {
|
||||
fn load_templates<I, P>(&mut self, dust_templates: I) -> Result<(), crate::error::CustomError>
|
||||
fn load_template<N, C>(&mut self, name: N, contents: C) -> Result<(), crate::error::CustomError>
|
||||
where
|
||||
I: Iterator<Item = P>,
|
||||
P: Into<std::path::PathBuf>,
|
||||
N: Into<String>,
|
||||
C: Into<String>,
|
||||
{
|
||||
// TODO
|
||||
Ok(())
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user