From 4b0453df2dcd016de1c8c0eb99a13714ef4b07d4 Mon Sep 17 00:00:00 2001
From: Andros Fenollosa
Date: Tue, 19 Mar 2024 17:14:31 +0100
Subject: [PATCH] Fix data
---
one.org | 17 ++++++++++++-----
1 file changed, 12 insertions(+), 5 deletions(-)
diff --git a/one.org b/one.org
index 3fa31a2..d1a8aa9 100644
--- a/one.org
+++ b/one.org
@@ -405,20 +405,27 @@ For example, you can create a link to the ~about me~ page.
#+BEGIN_SRC html
role="button"
- >Ver completo
+ >Go to about me page
#+END_SRC
-- ~data-controller~: Indicates that the element is a controller. ~page~ with functions to switch between pages.
- ~data-action~: Indicates that the element is an action. ~click~ to capture the click event. ~page#changePage~ to call the ~changePage~ function of the ~page~ controller.
- ~data-page~: Indicates the name of the page to which you want to move. The name is the same as the name of the action file. For example, ~actions/about_me.py~.
- ~href~: Optional. It is recommended to use the ~href~ attribute to improve SEO or if JavaScript is disabled.
- ~role~: Optional. It is recommended to use the ~role~ attribute to improve accessibility or if JavaScript is disabled.
+Or use a button for it.
+
+#+BEGIN_SRC html
+
+#+END_SRC
+
** Send data
If you want to send data to the next page, you can use the ~data-~ attribute. All datasets will be sent.
@@ -432,7 +439,7 @@ For example, you can create a link to the ~blog single~ page with the ~slug~ of
data-slug="{{ article.slug }}"
href="{% url "blog single" slug=article.slug %}"
role="button"
- >Ver completo
+ >See article
#+END_SRC
To receive the data in action ~blog_single.py~ you can use the ~client_data~ parameter with the ~data~ key.
@@ -855,7 +862,7 @@ Create a folder called ~pages~ in your template folder and inside it create a fi
data-action="click->page#run"
data-liveview-action="home"
data-liveview-function="random_number"
- >Generate random number
+ >Random number