use std::fs::{copy, create_dir_all, read_dir};
use std::io::Result;
use std::path::PathBuf;
-use crate::post::Post;
+use crate::template::TemplateContext;
fn recursively_copy(source: &PathBuf, target: &PathBuf) -> Result<()> {
let entries = read_dir(source)?;
Ok(())
}
-pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &Vec<Post>) -> Result<()> {
+pub fn generate(source: &PathBuf, _: &PathBuf, target: &PathBuf, _: &TemplateContext) -> Result<()> {
if source.exists() {
return recursively_copy(source, target)
}