TE
科技回声
首页24小时热榜最新最佳问答展示工作
GitHubTwitter
首页

科技回声

基于 Next.js 构建的科技新闻平台,提供全球科技新闻和讨论内容。

GitHubTwitter

首页

首页最新最佳问答展示工作

资源链接

HackerNews API原版 HackerNewsNext.js

© 2025 科技回声. 版权所有。

Htmx 1.0.0 Release

107 点作者 skept超过 4 年前

8 条评论

tmpfs超过 4 年前
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 未加载
err4nt超过 4 年前
&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 未加载
recursivedoubts超过 4 年前
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 未加载
Epskampie超过 4 年前
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 未加载
rasso超过 4 年前
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.
bobthebuilders超过 4 年前
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-garzon超过 4 年前
Has anybody built a site they’d like to share built with htmx? (If so, do share :)
评论 #25234130 未加载
midrus超过 4 年前
I find unpoly so much better and complete than this.<p>Unpoly just has bad marketing.
评论 #25238030 未加载
评论 #25237851 未加载