logoalt Hacker News

embedding-shapelast Thursday at 4:17 PM1 replyview on HN

    <button hx-post="/clicked" hx-swap="outerHTML">
You know, I see logic/"programming" inside of templates and I'm out, gave up that life many years ago and never have I been eager to go back to it.

No, I'll keep using hiccup and similar things that are just data and nothing more, no syntax, just functions and built-in data structures, then give me HTML as a string which consumers can do whatever with, and we're golden.


Replies

recursivedoubtslast Thursday at 4:37 PM

how do you feel about this mixing of control logic and display information:

  <a href=“/clicked”>click me</a>