Update docs.

This commit is contained in:
Dillon Kearns 2021-05-23 10:09:19 -07:00
parent b147d17a1d
commit 59f6f9012a

View File

@ -34,6 +34,9 @@ type Path
= Path String
{-| Create a Path from multiple path parts. Each part can either be a single path segment, like `blog`, or a
multi-part path part, like `blog/post-1`.
-}
join : List String -> Path
join parts =
parts
@ -56,6 +59,8 @@ fromString path =
|> Path
{-| Turn a Path to an absolute URL (with no trailing slash).
-}
toAbsolute : Path -> String
toAbsolute (Path path) =
"/" ++ path