Starting to create the renderer integrations.
These are the layer directly over dust which can be used by anything, not just blog posts.
This commit is contained in:
24
src/render/duster_renderer.rs
Normal file
24
src/render/duster_renderer.rs
Normal file
@@ -0,0 +1,24 @@
|
||||
use super::renderer_integration::RendererIntegration;
|
||||
|
||||
pub(crate) struct DusterRenderer {}
|
||||
|
||||
impl RendererIntegration for DusterRenderer {
|
||||
fn load_templates<I, P>(&mut self, dust_templates: I) -> Result<(), crate::error::CustomError>
|
||||
where
|
||||
I: Iterator<Item = P>,
|
||||
P: Into<std::path::PathBuf>,
|
||||
{
|
||||
todo!()
|
||||
}
|
||||
|
||||
fn render<P>(
|
||||
&self,
|
||||
context: &str,
|
||||
build_directory: P,
|
||||
) -> Result<String, crate::error::CustomError>
|
||||
where
|
||||
P: AsRef<std::path::Path>,
|
||||
{
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user