diff --git a/src/routes/about.lisp b/src/routes/about.lisp index e0c319b..d9040dd 100644 --- a/src/routes/about.lisp +++ b/src/routes/about.lisp @@ -13,7 +13,7 @@ (pi:h (section (view:asset-props :style "pages/about.css" :script "pages/about.js" - :x-data "aboutPageState") + :x-data "aboutPage") (h1 "About") (a :href "/" :hx-boost "true" "top") diff --git a/src/routes/index.lisp b/src/routes/index.lisp index fb8bce3..069952e 100644 --- a/src/routes/index.lisp +++ b/src/routes/index.lisp @@ -9,7 +9,7 @@ (pi:h (section (view:asset-props :style "pages/index.css" :script "pages/index.js" - :x-data "indexPageState") + :x-data "indexPage") (h1 "Hello, World!") (a :href "/about" :hx-boost "true" diff --git a/src/scripts/pages/about.js b/src/scripts/pages/about.js index e2363a1..7611988 100644 --- a/src/scripts/pages/about.js +++ b/src/scripts/pages/about.js @@ -1,4 +1,4 @@ -export const aboutPageState = () => ({ +export const aboutPage = () => ({ count: 0, decrement() { diff --git a/src/scripts/pages/index.js b/src/scripts/pages/index.js index dca2738..67c22b6 100644 --- a/src/scripts/pages/index.js +++ b/src/scripts/pages/index.js @@ -1,4 +1,4 @@ -export const indexPageState = () => ({ +export const indexPage = () => ({ count: 0, increment() {