Re:The Renaissance of server side rendering with Alpine and ...
by recursivedoubts on Sunday March 06, 2022 @03:37PM
(#30581025)
For 1, you would probably want to follow the code here for client side templates:
https://unpkg.com/[email protected]/dist/ext/client-side-templa...
in particular taking advantage of the `transformResponse` extension point in htmx. It would not be too much work to allow a function call to transform and extract information from the `text` variable, which is the raw response text.
For 2, I have updated the FAQ to make it clear that it's a joke.
This is not really the forum for this, but for 1, I don't see how this will help.
I get a response from the server of <li>1</li><li>5</li>, and I want to add [1,5] to an array, and then modify them to <li>one</li><li>five</li> before insertion. How would I do that?
2. Lack of internet meme knowledge, but still perhaps worth thinking about changing?