Closed johntom closed 2 years ago
The functions are just being used to mock out the server responses. You might want to check out the demo toolkit (https://htmx.org/docs/#creating-demos) which was created after the examples, and does the same thing in a more structured manner
thank you @gone
Hi, Doing a POC with htmx and its going failry well, Looking at source of https://htmx.org/examples/tabs-hateoas/ example shows a function call for each tab, I'm trying to emulate that in my nodejs example but it does not load. I know I can load each tab with call to an actual file with hx-get="./tab1.html" or hx-get="https://gethtmxpayload/tab1" where I serve it up from an api endpoint but curious to using the fuctions shown in demo, TIA John verion htmx.org@1.4.1