pub fn classify_change(path: &Path) -> ChangeKindExpand description
Classifies a changed file path for selective reload.
ยงExamples
use ssg::watch::{classify_change, ChangeKind};
use std::path::Path;
assert_eq!(classify_change(Path::new("a.css")), ChangeKind::Css);
assert_eq!(classify_change(Path::new("post.md")), ChangeKind::Content);
assert_eq!(classify_change(Path::new("layout.html")), ChangeKind::Template);
assert_eq!(classify_change(Path::new("data.json")), ChangeKind::Other);