mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-23 06:04:23 +03:00
Include Just in front of route helper.
This commit is contained in:
parent
27d13c5a15
commit
392389ebbc
@ -59,6 +59,7 @@ file templates =
|
||||
(\segments ->
|
||||
(routes
|
||||
|> List.concatMap RoutePattern.routeToBranch
|
||||
|> List.map (Tuple.mapSecond (\constructRoute -> Elm.CodeGen.apply [ Elm.CodeGen.val "Just", constructRoute ]))
|
||||
|> Elm.CodeGen.caseExpr (Elm.CodeGen.val "segments")
|
||||
)
|
||||
|> Elm.Pretty.prettyExpression
|
||||
|
Loading…
Reference in New Issue
Block a user