mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-25 21:02:33 +03:00
Update docs.
This commit is contained in:
parent
b147d17a1d
commit
59f6f9012a
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user