mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2024-12-27 22:01:48 +03:00
Remove module contract requirement for View.placeholder since it is obsolete now with new scaffolding.
This commit is contained in:
parent
2d7f1961e3
commit
459f6df9de
@ -1,4 +1,4 @@
|
|||||||
module View exposing (View, map, placeholder)
|
module View exposing (View, map)
|
||||||
|
|
||||||
{-|
|
{-|
|
||||||
|
|
||||||
@ -22,11 +22,3 @@ map fn doc =
|
|||||||
{ title = doc.title
|
{ title = doc.title
|
||||||
, body = List.map (Html.map fn) doc.body
|
, body = List.map (Html.map fn) doc.body
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
{-| -}
|
|
||||||
placeholder : String -> View msg
|
|
||||||
placeholder moduleName =
|
|
||||||
{ title = "Placeholder - " ++ moduleName
|
|
||||||
, body = [ Html.text moduleName ]
|
|
||||||
}
|
|
||||||
|
@ -130,7 +130,7 @@ coreModulesAndExports =
|
|||||||
, ( [ "ErrorPage" ], [ "ErrorPage", "notFound", "internalError", "view", "statusCode", "head" ] )
|
, ( [ "ErrorPage" ], [ "ErrorPage", "notFound", "internalError", "view", "statusCode", "head" ] )
|
||||||
, ( [ "Shared" ], [ "Data", "Model", "Msg", "template" ] )
|
, ( [ "Shared" ], [ "Data", "Model", "Msg", "template" ] )
|
||||||
, ( [ "Site" ], [ "config" ] )
|
, ( [ "Site" ], [ "config" ] )
|
||||||
, ( [ "View" ], [ "View", "map", "placeholder" ] )
|
, ( [ "View" ], [ "View", "map" ] )
|
||||||
]
|
]
|
||||||
|
|
||||||
|
|
||||||
|
@ -292,7 +292,7 @@ invalid = Debug.todo ""
|
|||||||
, [ Review.Test.error
|
, [ Review.Test.error
|
||||||
{ message = "A core elm-pages module needs to expose something"
|
{ message = "A core elm-pages module needs to expose something"
|
||||||
, details =
|
, details =
|
||||||
[ "The View module must expose `View`, `map`, `placeholder`"
|
[ "The View module must expose `View`, `map`"
|
||||||
]
|
]
|
||||||
, under = "exposing (invalid)"
|
, under = "exposing (invalid)"
|
||||||
}
|
}
|
||||||
@ -325,7 +325,7 @@ routes = Debug.todo ""
|
|||||||
, """module Site exposing (config)
|
, """module Site exposing (config)
|
||||||
routes = Debug.todo ""
|
routes = Debug.todo ""
|
||||||
"""
|
"""
|
||||||
, """module View exposing (View, map, placeholder)
|
, """module View exposing (View, map)
|
||||||
routes = Debug.todo ""
|
routes = Debug.todo ""
|
||||||
"""
|
"""
|
||||||
]
|
]
|
||||||
|
Loading…
Reference in New Issue
Block a user