[−][src]Trait gazetta::prelude::Gazetta
Associated Types
Loading content...Required methods
fn render_page(
&self,
site: &Site<Self>,
page: &Page<Self>,
tmpl: &mut TemplateBuffer
)
&self,
site: &Site<Self>,
page: &Page<Self>,
tmpl: &mut TemplateBuffer
)
The page rendering function.
Provided methods
fn render_static(
&self,
site: &Site<Self>,
source: &Path,
output: &Path
) -> Result<(), Error>
&self,
site: &Site<Self>,
source: &Path,
output: &Path
) -> Result<(), Error>
Render static content.
By default, this just copies. Override to compile.
fn render<P>(
&self,
source: &Source<Self::SiteMeta, Self::PageMeta>,
output: P
) -> Result<(), AnnotatedError<Error>> where
P: AsRef<Path>,
&self,
source: &Source<Self::SiteMeta, Self::PageMeta>,
output: P
) -> Result<(), AnnotatedError<Error>> where
P: AsRef<Path>,
Creates pages from a site defined by a source and renders them into output.
Call this to render your site.
Note: You can override this but you really shouldn't. This function contains pretty much all of the provided render logic.