Hacker News new | ask | show | jobs
by playworker 398 days ago
I might have misunderstood your comment but I don't think that's what htmx does, it just adds reactivity without needing to write JS, the HTML is represented in the project using Hiccup syntax which is essentially HTML in Clojure data structures - makes sense when code is data is a big part of the Lisp idea. It is an external template file into which you can replace fields, it's just a Clojure file too.
1 comments

My mistake. I mean Hiccup (not Htmx). I prefer the approach of using external template files.
AFAIK, all libraries are loosely coupled in Biff. Swapping out Hiccup / Rum for one of the other HTML templating options should be in "userspace"; straightforwardly so, without the framework maintainers intervention.

Ref:

Biff's own documentation: https://biffweb.com/docs/reference/architecture/#modifying-t...

HTML templating options: https://ericnormand.me/mini-guide/clojure-html-templates