Re:It's React, but in Python
by loloquwowndueo on Tuesday June 06, 2023 @01:16PM
(#36216040)
https://htmx.org/ Says otherwise, so does https://blog.appsignal.com/2022/07/06/get-started-with-hotwi...
[ Parent
| on HN ]
I haven't used htmx but it looks nothing like pyreact. htmx is about adding attributes to html, so again, you are still writing html.
Re:It's React, but in Python
by loloquwowndueo on Tuesday June 06, 2023 @03:58PM
(#36218313)
Htmx is not only about adding attributes to HTML :) check how responses to requests are expected to contain full or partial HTML instead of, say, json.
yeah I get that, but the html that is returned from the server doesn't have to be generated with things like html.div(html.p('hello this is a p tag inside a div'))
you could still have your html in a template file and parse and return the contents of that.