pub fn detect_format(dir: &Path) -> Option<Format>
Detect which partial format a template directory holds, by probing for the format-defining theme file.