« get me outta code hell

hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/write/build-modes
diff options
context:
space:
mode:
Diffstat (limited to 'src/write/build-modes')
-rw-r--r--src/write/build-modes/live-dev-server.js13
-rw-r--r--src/write/build-modes/static-build.js13
2 files changed, 8 insertions, 18 deletions
diff --git a/src/write/build-modes/live-dev-server.js b/src/write/build-modes/live-dev-server.js
index d481b480..b6bf662b 100644
--- a/src/write/build-modes/live-dev-server.js
+++ b/src/write/build-modes/live-dev-server.js
@@ -296,20 +296,15 @@ export async function go({
         ]));
 
       const bound = bindUtilities({
+        absoluteTo,
+        getSizeOfAdditionalFile,
         language,
         to,
+        urls,
         wikiData,
       });
 
-      const pageInfo = page.page({
-        ...bound,
-
-        absoluteTo,
-        to,
-        urls,
-
-        getSizeOfAdditionalFile,
-      });
+      const pageInfo = page.page(bound);
 
       const pageHTML = generateDocumentHTML(pageInfo, {
         cachebust,
diff --git a/src/write/build-modes/static-build.js b/src/write/build-modes/static-build.js
index c2bb02f2..dab2598a 100644
--- a/src/write/build-modes/static-build.js
+++ b/src/write/build-modes/static-build.js
@@ -309,20 +309,15 @@ export async function go({
         });
 
         const bound = bindUtilities({
+          absoluteTo,
+          getSizeOfAdditionalFile,
           language,
           to,
+          urls,
           wikiData,
         });
 
-        const pageInfo = page({
-          ...bound,
-
-          absoluteTo,
-          to,
-          urls,
-
-          getSizeOfAdditionalFile,
-        });
+        const pageInfo = page(bound);
 
         const oEmbedJSON = generateOEmbedJSON(pageInfo, {
           language,