Skip to main content

case_slug_from_path

Function case_slug_from_path 

Source
pub fn case_slug_from_path(path: &Path, content_root: &Path) -> Option<String>
Expand description

Derive a case slug from a file path relative to content root.

E.g. content/cases/id/corruption/2002/foo.md with content root content/id/corruption/2002/foo.