3 ms·
I agree, and I'm trying to do something about it with two no-build libraries: https://htmx.org https://htmx.org - an 11k library that pushes HTML forward as a
by recursivedoubts 5y ago
I agree, and I'm trying to do something about it with two no-build libraries:
https://htmx.org https://htmx.org - an 11k library that pushes HTML forward as a hypermedia, making things like AJAX, SSE and CSS transitions available directly in HTML
https://hyperscript.org https://hyperscript.org - a 20k library that replaces jquery/javascript with an inline, HyperTalk inspired syntax
Both can be included on a site without any build infrastructure, and are attempts at bringing the joy of hypermedia and the joy of scripting, respectively, back to the web.
- synergy20 5y agoThey're both server-render(e.g. django) oriented, am I right? SPA makes things complicated, server-render does not handle all user cases either, is there a middle ground: that I still can manipulate DOMs on the client side but not like SPA that goes all way in. That is, something likes jquery(the best/simplest API ever even after ES6), but with virtual-DOM. Not sure if Mithril etc fits the bill.
- recursivedoubts 5y agohtmx is SSR-oriented: it is all about exchanging hypermedia with a server, but making that more expressive so you can implement things like Active Search within that paradigm: https://htmx.org/examples/ https://htmx.org/examples/ hyperscript is a client side scripting DSL that attempts to improve on javascript/jquery with an event-and-DOM-oriented syntax: <input type="text" placeholder="Search..." _="on keyup if the event's key is 'Escape' set my value to '' trigger keyup else show <p/> in #quotes when its textContent contains my value">