3 use std::path::PathBuf;
5 use crate::file_handler::{File, 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, file_type: &FileType) -> bool {
18 FileType::Layout => true,
23 // We don't implement handling for layout, as we assume there's only one
24 // and it got handled before.
25 fn handle_html(&self, _s: &PathBuf, _d: &PathBuf, _f: &File, _l: &String) {}
26 fn handle_gemini(&self, _s: &PathBuf, _d: &PathBuf, _f: &File) {}