Skip to main content

parse_slug

Function parse_slug 

Source
pub fn parse_slug(slug: &str) -> Option<AppSection>
Expand description

Map a slug to its AppSection. Accepts both recorder and record for the Record variant (the storybook uses record in the kebab-case slug; the URL convention is the longer recorder).