News for hackers. Stuff that matters.
Re:Back-end languages are coming to the front-end by mstef9 on Thursday February 10, 2022 @10:39AM (#30287683)
You can achieve full support with JS disabled using HTMX as well. It takes a little more work but HTMX provides headers[0] which you can evaluate on the backend to determine if you should return a partial or not. If JS is disabled, the HTMX headers will be missing and you know it's not an HTMX request.

[0] https://htmx.org/reference/#request_headers

Re:Back-end languages are coming to the front-end by stavros on Thursday February 10, 2022 @10:50AM (#30287875)
Ah, that's a great idea, thanks!