Discussion
majorchord: https://sfconservancy.org/GiveUpGitHub/
nattaylor: Reminds me a little of htmzhtmz is a minimalist HTML microframework for creating interactive and modular web user interfaces with the familiar simplicity of plain HTML.
recursivedoubts: heya amaury, great library!i have added it to the htmx alternatives page:https://htmx.org/essays/alternatives/#ujs
tagfowufe: Sneaking in real quick to thank you for your contributions and positive attitude you bring to the space.
gaigalas: I like the idea. DOM morphing is nice.I've done this previously with morphdom to AJAXify a purely server-driven backoffice system in a company.I would love something even smaller. No `mu-` attributes (just rely on `id`, `href`, `rel`, `rev` and standard HTML semantics).There's a nice `resource` attribute in RDFa which makes a lot of sense for these kinds of things: https://www.w3.org/TR/rdfa-lite/#h-resourceOverall, I think old 2015-era microdata like RDFa and this approach would work very well. Instead of reinventing attributes, using a standard.
ranger_danger: Does it automatically parse JSON responses from servers into objects? This is my one big gripe about htmx, even though the devs and other users keep telling me I shouldn't want that as a feature and that it "doesn't make sense".Sorry if I need to use existing APIs I cannot change.
WesolyKubeczek: I came to a conclusion that when you have an SPA with JSON-spitting backend where you cannot make the backend spit out chunks of HTML, htmx and similar libraries/frameworks are not suitable. They are suitable if you already have a multi-page application like we used to in 2006, or if you design it from the ground up.
networked: This is bad advice to any new FLOSS project that wants to have users. Avoiding GitHub with its user base, search, project topics (tags), trending repository lists, etc. will make the fledgling project even less likely to gain adoption. A better thing to suggest is to mirror your project across multiple forges, including GitHub, so you have a spare.
majorchord: Hard disagree, multiple forges does not solve the problem of being unable to opt-out of AI training from your code.
networked: If this is your problem with GitHub, then I agree, you should avoid GitHub, though someone can still mirror your repository there. I assume most new FLOSS projects that want to have users don't consider it a dealbreaker.
lioeters: Looks useful! I skimmed through the docs and had a question.Is there a mechanism for loading HTML partials that require additional style or script file? And possibly a way to trigger a JS action when loaded? For example, loading an image gallery.