Added function to MDBook to swap renderer #10

This commit is contained in:
Mathieu David 2015-08-04 20:51:01 +02:00
parent 2c22d11bfd
commit 191f594e78
1 changed files with 5 additions and 0 deletions

View File

@ -126,6 +126,11 @@ impl MDBook {
self
}
pub fn set_renderer(mut self, renderer: Box<Renderer>) -> Self {
self.renderer = renderer;
self
}
pub fn set_dest(mut self, dest: &Path) -> Self {
self.config.set_dest(dest);
self