(text: &str)
| 505 | | "scripting/ui" |
| 506 | | "scripting/water" |
| 507 | ) |
| 508 | { |
| 509 | "Author" |
| 510 | } else if slug.starts_with("scripting/") { |
| 511 | "Script" |
| 512 | } else if slug.starts_with("project/") { |
| 513 | "Ship" |
| 514 | } else { |
| 515 | "Reference" |
| 516 | } |
| 517 | } |
| 518 | |
| 519 | fn route_path(collection: &str, slug: &str) -> String { |
| 520 | match (collection, slug) { |