| Safe Haskell | Trustworthy |
|---|---|
| Language | GHC2024 |
MathiasSM.CleanURL
Description
Clean URLs: routing and the stripping of the index.html suffix
Documentation
outputPath :: FilePath -> FilePath Source #
The output file for a public path: `contact` becomes `contactindex.html`, while a path with an extension (like `/404.html`) is kept as is.
cleanIndex :: String -> String Source #
Strips a URL of its index.html suffix