-
So, based on this example https://github.com/trikko/parserino/tree/master/examples/05_serve_html, we create our HTML pages with any editor, set some placeholders, then load and edit innerText dynamically. There should be capabilities of parserino and/or lexbor to pass js stuff. I should examine those capabilities, such as forms, etc. |
Beta Was this translation helpful? Give feedback.
Answered by
trikko
Mar 16, 2024
Replies: 1 comment 10 replies
-
For passing data from server to client you can use a hidden node with a custom data- attribute. Something like: ...
<div id="mydata" data-content="">
... auto json = ....;
auto node = doc.byId("mydata");
node.setAttribute("data-content", json.toString); For passing data from client to server you can use a webservice, of course. fetch("https://yourserver/dothis")
.then((response) => response.json())
.then((json) => console.log(json)); |
Beta Was this translation helpful? Give feedback.
10 replies
Answer selected by
trikko
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For passing data from server to client you can use a hidden node with a custom data- attribute. Something like:
For passing data from client to server you can use a webservice, of course.