mirror of
https://github.com/dillonkearns/elm-pages.git
synced 2024-09-11 09:05:28 +03:00
563 B
563 B
elm-pages 2.0
elm-pages generate Projects.Username_.Repo_
type alias RouteParams =
{ username : String, repo : String }
page : Page RouteParams StaticData
page =
Page.noStaticData
{ head = head
, staticRoutes = StaticHttp.succeed []
}
|> Page.buildNoState { view = view }
view :
StaticPayload StaticData RouteParams
-> Document Msg
view static =
{ title = "TODO title"
, body = []
}
Core Concepts
- Page Modules (
Page.*.elm
) BackendTask
sShared.elm
,Site.elm