mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-11-25 09:21:57 +03:00
Rename variable in route module template.
This commit is contained in:
parent
59b865670e
commit
a8bb62a40e
@ -135,7 +135,7 @@ init :
|
||||
-> Shared.Model
|
||||
-> StaticPayload Data ActionData RouteParams
|
||||
-> ( Model, Effect Msg )
|
||||
init maybePageUrl sharedModel static =
|
||||
init maybePageUrl sharedModel app =
|
||||
( {}, Effect.none )
|
||||
|
||||
|
||||
@ -150,7 +150,7 @@ update :
|
||||
? "( Model, Effect Msg )"
|
||||
: "( Model, Effect Msg, Maybe Shared.Msg )"
|
||||
}
|
||||
update pageUrl sharedModel static msg model =
|
||||
update pageUrl sharedModel app msg model =
|
||||
case msg of
|
||||
NoOp ->
|
||||
${
|
||||
@ -221,7 +221,7 @@ action routeParams =
|
||||
head :
|
||||
StaticPayload Data ActionData RouteParams
|
||||
-> List Head.Tag
|
||||
head static =
|
||||
head app =
|
||||
Seo.summary
|
||||
{ canonicalUrlOverride = Nothing
|
||||
, siteName = "elm-pages"
|
||||
@ -247,14 +247,14 @@ ${
|
||||
-> Model
|
||||
-> StaticPayload Data ActionData RouteParams
|
||||
-> View ${serverRender ? "(Pages.Msg.Msg Msg)" : "Msg"}
|
||||
view maybeUrl sharedModel model static =
|
||||
view maybeUrl sharedModel model app =
|
||||
`
|
||||
: `view :
|
||||
Maybe PageUrl
|
||||
-> Shared.Model
|
||||
-> StaticPayload Data ActionData RouteParams
|
||||
-> View ${serverRender ? "(Pages.Msg.Msg Msg)" : "Msg"}
|
||||
view maybeUrl sharedModel static =`
|
||||
view maybeUrl sharedModel app =`
|
||||
} View.placeholder "${pageModuleName}"
|
||||
`;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user