elm-pages/examples/slides/slides.md
2021-04-21 06:05:04 -07:00

628 B

elm-pages 2.0

elm-pages generate Projects.Username_.Repo_
type alias RouteParams =
    { username : String, repo : String }

template : Template RouteParams StaticData
template =
    Template.noStaticData
        { head = head
        , staticRoutes = StaticHttp.succeed []
        }
        |> Template.buildNoState { view = view }


view :
    StaticPayload StaticData RouteParams
    -> Document Msg
view static =
    { title = "TODO title"
    , body = []
    }

Core Concepts

  • Page Templates (Template.*.elm)
  • DataSources
  • Shared.elm, Site.elm

Page Templates

Here's another body