Rename value all to allPages.

This commit is contained in:
Dillon Kearns 2019-09-08 10:01:12 -07:00
parent 07895d8c3f
commit f3140e7401
2 changed files with 3 additions and 3 deletions

View File

@ -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://")

View File

@ -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),