elm-pages-v3-beta/examples/slides/slides.md
2023-01-01 14:45:54 -08:00

558 B

elm-pages 2.0

elm-pages add 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)
  • BackendTasks
  • Shared.elm, Site.elm