dillonkearns/elm-pages-v3-beta/8.0.0

NOTE: the latest version is 21.0.0

Rerouted (regenerated, verified). Same repository and tag, but GitHub now builds the zip with different bytes, so it no longer matches the SHA-1 package.elm-lang.org recorded. The Lamdera package server serves a copy recovered from https://github.com/dillonkearns/elm-pages-v3-beta.

What we checked: Tag 8.0.0 is still on github.com/dillonkearns/elm-pages-v3-beta; its commit b7735572454e is from 2023-01-17 05:49 UTC, before the version was published (2023-01-17 05:52 UTC); elm.json is byte-identical to package.elm-lang.org's; the exposed modules match docs.json; the zip's SHA-1 is not the published one (GitHub's zip no longer comes out byte for byte the same), so the contents were checked instead.

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/dillonkearns/elm-pages-v3-beta/zipball/8.0.0/

Pages.Generate

This module provides some functions for scaffolding code for a new Route Module. It uses elm-codegen's API for generating code.

Typically you'll want to use this via the elm-pages codegen CLI command. The default starter template includes a file that uses these functions, which you can tweak to customize your scaffolding commands. Learn more about the elm-pages run CLI command in its docs page.

Initializing the Generator Builder

{ view :
{ maybeUrl : Expression
, sharedModel : Expression
, model : Expression
, app : Expression
}
-> Expression
, update :
{ pageUrl : Expression
, sharedModel : Expression
, app : Expression
, msg : Expression
, model : Expression
}
-> Expression
, init :
{ pageUrl : Expression
, sharedModel : Expression
, app : Expression
}
-> Expression
, subscriptions :
{ maybePageUrl : Expression
, routeParams : Expression
, path : Expression
, sharedModel : Expression
, model : Expression
}
-> Expression
, msg : Type
, model : Type
}
-> File
{ view :
{ maybeUrl : Expression
, sharedModel : Expression
, model : Expression
, app : Expression
}
-> Expression
, update :
{ pageUrl : Expression
, sharedModel : Expression
, app : Expression
, msg : Expression
, model : Expression
}
-> Expression
, init :
{ pageUrl : Expression
, sharedModel : Expression
, app : Expression
}
-> Expression
, subscriptions :
{ maybePageUrl : Expression
, routeParams : Expression
, path : Expression
, sharedModel : Expression
, model : Expression
}
-> Expression
, msg : Type
, model : Type
}
-> File
{ view :
{ maybeUrl : Expression
, sharedModel : Expression
, app : Expression
}
-> Expression
}
-> File
type Builder
type Type
= Alias Annotation
| Custom (List Variant)

Generating Server-Rendered Pages

{ data : ( Type, Expression -> Expression )
, action : ( Type, Expression -> Expression )
, head : Expression -> Expression
, moduleName : List String
}

Generating pre-rendered pages

{ data : ( Type, Expression -> Expression )
, pages : Expression
, head : Expression -> Expression
, moduleName : List String
}
{ data : ( Type, Expression )
, head : Expression -> Expression
, moduleName : List String
}