7 use std::path::PathBuf;
10 pub fn generate(static_directory: &PathBuf, template_directory: &PathBuf, output_directory: &PathBuf, posts: &Vec<Post>) -> Result<()> {
11 let generators = available_generators();
12 for generator in generators {
13 generator(static_directory, template_directory, output_directory, posts)?;
19 fn available_generators() -> Vec<fn(&PathBuf, &PathBuf, &PathBuf, &Vec<Post>) -> Result<()>> {
21 static_files::generate,