src/backend/render.rs: formatting
This commit is contained in:
@@ -131,9 +131,7 @@ impl Page {
|
|||||||
}
|
}
|
||||||
|
|
||||||
/// Render a page to a Write-able stream
|
/// Render a page to a Write-able stream
|
||||||
pub fn render<W: Write>(
|
pub fn render<W: Write>(&self, mut dest: W) -> Result<(), Box<dyn Error>> {
|
||||||
&self, mut dest: W
|
|
||||||
) -> Result<(), Box<dyn Error>> {
|
|
||||||
/* TODO: replace ./assets/ with the actual templates directory,
|
/* TODO: replace ./assets/ with the actual templates directory,
|
||||||
* i.e. /usr/local/share/mintee/ */
|
* i.e. /usr/local/share/mintee/ */
|
||||||
let tera = Tera::new("./assets/templates/**/*")?;
|
let tera = Tera::new("./assets/templates/**/*")?;
|
||||||
|
|||||||
Reference in New Issue
Block a user