Pages.Internal.RoutePattern
Exposed for internal use only (used in generated code).
type
Ending
=
Optional
String
|
RequiredSplat
|
OptionalSplat
type
alias
RoutePattern
=
{ segments
:
List
Segment
, ending
:
Maybe
Ending
}
type
Segment
=
StaticSegment
String
|
DynamicSegment
String
view
:
RoutePattern
->
Html
msg
toVariant
:
RoutePattern
->
Variant
routeToBranch
:
RoutePattern
->
List
(
Pattern
,
Expression
)
type
Param
=
RequiredParam
|
OptionalParam
|
RequiredSplatParam
|
OptionalSplatParam
type
RouteParam
=
StaticParam
String
|
DynamicParam
String
|
OptionalParam2
String
|
RequiredSplatParam2
|
OptionalSplatParam2
fromModuleName
:
List
String
->
Maybe
RoutePattern
hasRouteParams
:
RoutePattern
->
Bool
repeatWithoutOptionalEnding
:
List
RouteParam
->
Maybe
(
List
RouteParam
)
toModuleName
:
RoutePattern
->
List
String
toRouteParamTypes
:
RoutePattern
->
List
(
String
,
Param
)
toRouteParamsRecord
:
RoutePattern
->
List
(
String
,
Annotation
)
toVariantName
:
RoutePattern
-> { variantName
:
String
, params
:
List
RouteParam
}
elm doc
preview
Open Files
Close Preview
README
Browse Source
ApiRoute
BackendTask
BackendTask.Env
BackendTask.File
BackendTask.Glob
BackendTask.Http
BackendTask.Port
Exception
Form
Form.Field
Form.FieldStatus
Form.FieldView
Form.FormData
Form.Validation
Form.Value
Head
Head.Seo
Pages.Fetcher
Pages.Flags
Pages.FormState
Pages.Generate
Pages.Internal.NotFoundReason
Pages.Internal.Platform
Pages.Internal.Platform.Cli
Pages.Internal.Platform.GeneratorApplication
Pages.Internal.ResponseSketch
Pages.Internal.RoutePattern
Pages.Internal.Router
Pages.Manifest
Pages.Manifest.Category
Pages.Msg
Pages.PageUrl
Pages.Script
Pages.Transition
Pages.Url
Path
QueryParams
Server.Request
Server.Response
Server.Session
Server.SetCookie