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