mirror of
https://github.com/dillonkearns/elm-pages-v3-beta.git
synced 2025-01-03 01:16:14 +03:00
Rename value all to allPages.
This commit is contained in:
parent
07895d8c3f
commit
f3140e7401
@ -1,6 +1,6 @@
|
||||
generateRawContent = require("./generate-raw-content.js");
|
||||
const exposingList =
|
||||
"(PathKey, all, allImages, application, images, isValidRoute, pages)";
|
||||
"(PathKey, allPages, allImages, application, images, isValidRoute, pages)";
|
||||
|
||||
function staticRouteStuff(staticRoutes) {
|
||||
return `
|
||||
@ -22,7 +22,7 @@ isValidRoute : String -> Result String ()
|
||||
isValidRoute route =
|
||||
let
|
||||
validRoutes =
|
||||
List.map Path.toString all
|
||||
List.map Path.toString allPages
|
||||
in
|
||||
if
|
||||
(route |> String.startsWith "http://")
|
||||
|
@ -91,7 +91,7 @@ function generate(scanned) {
|
||||
}
|
||||
return {
|
||||
// routes: toFlatRouteType(allRoutes),
|
||||
allRoutes: formatAsElmList("all", allRoutes),
|
||||
allRoutes: formatAsElmList("allPages", allRoutes),
|
||||
routeRecord: toElmRecord("pages", routeRecord, true),
|
||||
// routeToMetadata: formatCaseStatement("toMetadata", routeToMetadata),
|
||||
// routeToDocExtension: formatCaseStatement("toExt", routeToExt),
|
||||
|
Loading…
Reference in New Issue
Block a user