TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Htmx 1.0.0 Release

107 pointsby skeptover 4 years ago

8 comments

tmpfsover 4 years ago
Congratulations on the release, i have been following htmx for a while and whilst have yet to use it, conceptually i think the ideas are solid.<p>I think the trend towards SPAs and everything is Javascript&#x2F;JSX has created a situation where people build SPAs then add SSR as an afterthought.<p>This is anathema to the ideas of document driven web pages and i think htmx could be a good middle ground. Of course for some applications SPAs are the correct choice but I see many people reaching for them as the default rather than creating pages and enhancing when necessary.<p>I am working on some tooling in this space and hope to see how htmx could fit into progressively enhanced websites.
评论 #25234026 未加载
err4ntover 4 years ago
&gt; It&#x27;s worth mentioning that, if you prefer, you can use the `data-` prefix when using htmx<p>I don&#x27;t know why people who make frameworks either prefer invalid HTML, or if they do allow people to write valid HTML they seem to show the invalid code in the docs<p>You are not allowed to invent any old attributes you want and add them to any element and have it be valid HTML, but you can invent any attribute you want so long as it begins with `data-`.<p><a href="https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;dom.html#embedding-custom-non-visible-data-with-the-data-*-attributes" rel="nofollow">https:&#x2F;&#x2F;html.spec.whatwg.org&#x2F;multipage&#x2F;dom.html#embedding-cu...</a>
评论 #25233969 未加载
评论 #25233942 未加载
评论 #25234270 未加载
评论 #25233985 未加载
评论 #25236246 未加载
评论 #25234003 未加载
评论 #25248943 未加载
recursivedoubtsover 4 years ago
I&#x27;m the creator of htmx, glad to see this make HN.<p>Happy to answer questions.
评论 #25234333 未加载
评论 #25234351 未加载
评论 #25234851 未加载
评论 #25234637 未加载
评论 #25234550 未加载
评论 #25234647 未加载
评论 #25235622 未加载
评论 #25234276 未加载
评论 #25234036 未加载
Epskampieover 4 years ago
I recently tried to use htmx because i like the idea. I made a table where you could click lines to expand them. Now, clicking a line would request the subcontent and insert it, easy-peezy. But now i want you to be able to click the line again to close. Hmm, in htmx this means that i’ll have to return a new parent line from the server as well... guess ill make a special template for that. Repeat this a few times and my backend templates were getting so many special cases that i just switched back to jQuery.<p>Perhaps i just need to learn more “htmx-like” code patterns, but they didn’t come that naturally to me.
评论 #25237999 未加载
rassoover 4 years ago
This looks amazing! I never adopted any of the frameworks (vue, react, angular, ...) because I think they should only be used for web apps, but not for classic websites. JS for everything frontend-related in my opinion just has too many downsides for an open web (possibly bad SEO for crawlers that don&#x27;t support javascript, reliance on the users device for rendering)<p>Htmx might be the perfect tool to stay with classic server-side rendering and still have the &quot;pop&quot; of SPAs.
bobthebuildersover 4 years ago
Apologies if I missed it, but how would authentication work? I&#x27;m trying to figure out where ok the scale from Spring Security to JWT and React it falls on.
评论 #25238041 未加载
ezequiel-garzonover 4 years ago
Has anybody built a site they’d like to share built with htmx? (If so, do share :)
评论 #25234130 未加载
midrusover 4 years ago
I find unpoly so much better and complete than this.<p>Unpoly just has bad marketing.
评论 #25238030 未加载
评论 #25237851 未加载