3 use std::path::PathBuf;
5 use crate::file_handler::{FileType, FileHandlerStrategy};
7 impl FileHandlerStrategy for Strategy {
8 fn is(&self, path: &PathBuf) -> bool {
9 return !path.is_dir() && path.ends_with("_layout.html");
12 fn identify(&self) -> FileType {
16 fn can_handle(&self, path: &PathBuf) -> bool {
20 fn handle(&self, path: &PathBuf) {
21 println!("Should convert {}", path.display())