ryannhg/elm-spa/2.0.0

NOTE: the latest version is 6.0.0

Renamed to ryan-haskell/elm-spa. It is published under that name, and new versions come out there.

Versions published as ryannhg/elm-spa still install under that name. 13 versions of 13 come from the new location (see their notes).

Rerouted (renamed, verified). The GitHub user or repository was renamed. The tag is still there, at the new name. The Lamdera package server serves a copy recovered from https://github.com/ryan-haskell/elm-spa.

What we checked: The repo moved to github.com/ryan-haskell/elm-spa. Rebuilt with git archive from commit cbb4e8efc1c5 of https://github.com/ryan-haskell/elm-spa (zip prefix ryannhg-elm-spa-4983c22/, America/Los_Angeles times): the zip is byte-identical to the one package.elm-lang.org recorded, SHA-1 514556dfc25d7fe95ed5549f7caf8c967aeda026.

The Lamdera compiler uses this copy and prints a one-line notice saying so. elm itself fails to download this version.

Details · package.elm-lang.org's zip: https://github.com/ryannhg/elm-spa/zipball/2.0.0/

Spa.Path

Modify transitions at different routes!

If you're using the CLI companion tool, these are automatically generated.

(So feel free to ignore these docs!)

If you're doing things by hand, this documentation might be helpful!

type alias Path =
List Piece

a List of path segments that you use with Spa.Transition

transitions : Spa.Transitions (Element msg)
transitions =
    { layout = Transition.none
    , page = Transition.none
    , pages =
        [ -- applies fade to all pages under `/guide/*`
          { path = [ static "guide" ]
          , transition = Transition.fadeElmUi 300
          }
        ]
    }
static : String -> Piece

A static segment of a path.

[ static "docs" ]
-- /docs


[ static "docs", static "intro" ]
-- /docs/intro
dynamic : Piece

A dynamic segment of a path.

[ static "docs", dynamic ]
-- /docs/welcome
-- /docs/hello
-- /docs/hooray


[ static "docs", dynamic, static "intro" ]
-- /docs/welcome/intro
-- /docs/hello/intro
-- /docs/hooray/intro