Skip to main content

render_path

Function render_path 

Source
pub fn render_path(template: &str, t: &PathTokens) -> String
Expand description

Substitute {token} placeholders in a path-shaped template. Unknown tokens are preserved literally (so "{unknown}" renders as "{unknown}").

Multi-character tokens are replaced longest-first so future additions like {stem_kebab} do not accidentally match {stem} first.