June 06, 2024
Server-Driven Web Apps with htmx: Any Language, Less Code, Simpler Code
The htmx JavaScript library gives you a new way to craft web applications. The htmx approach differs significantly from that of the currently popular single-page application (SPA) frameworks; rather than write a bunch of JavaScript, you simply annotate HTML elements before you send them to the browser. The resulting code is easier to understand and modify, and because it downloads less to the browser and doesn’t need JSON creation and parsing, you'll find it performs better, too.
- Rethink web application design; write code in any language that simply responds to requests with htmx snippets.
- Dynamically update portions of the current web page directly from the server.
- Implement common patterns such as lazy loading, input validation, CSS transitions, active search, optimistic updates, pagination, infinite scroll, polling, and click-to-edit.
- Add interactivity with JavaScript and libraries such as Alpine and _hyperscript.
- Use the htmx JavaScript API to simplify DOM operations.
- Make your web apps more secure: escape user-supplied content, use Subresource Integrity hashes, and enforce a Content Security Policy.
- Go beyond the basic HTTP request/response pattern with WebSockets and server-sent events.
Discover a simpler way to implement web applications that emphasizes web fundamentals.
Now available in beta from pragprog.com/titles/mvhtmx.
Want to Write Something? Share What You Know
From paperbacks and ebooks to online courses and beyond, if you want to create
technical content, we may be your perfect partner.
Leverage our 20+ years of experience, our global distribution network, our
massive fan base, our relationships with industry leaders, our editorial,
production, and marketing prowess, and even our reputation for excellence. Sure,
you could go it alone, but with some of the highest royalties in all of
traditional publishing and your own personal team, why would you bother?
Shoot us an email at proposals@pragprog.com or visit pragprog.com/publish-with-us
for more details today.
Let's publish something together!
Upcoming Author Appearances2024-06-06 Michael Keeling,
Apiumhub Monthly Book Club Chats (virtual meetup)
2024-06-11 Andy Atkinson,
Posette Virtual Conference for PostgreSQL
2024-06-18 Jon Reid,
Remote workshop
2024-06-18 Miki Tebeka,
GopherCon EU at Berlin
2024-06-20 Johanna Rothman,
Focus Your Distributed Component Teams to Deliver Better Products Faster
2024-06-25 Johanna Rothman,
Product Management Today
2024-06-27 R. Mark Volkmann,
KCDC in Kansas City
2024-07-03 Anders Schau Knatten,
C++ on Sea
2024-07-03 Frances Buontempo,
CppOnSea/Folkestone
2024-07-16 Kenneth Kousen,
UberConf
Be the First
Sign up for this newsletter at https://pragprog.com/newsletter/ and be the first to hear about our newest
content, best promotions, and upcoming events.
Want even more? Follow @pragprog
on Twitter and The Pragmatic Programmers on LinkedIn
for commentary, news, job openings, and even puzzles.
And, if you want, you can see what
Dave Thomas
(@pragdave) is up to.
Thanks for your continued support,
By Professional Developers, for Professional Developers PragProg.com
Sent by the Pragmatic Programmers, LLC. • PO Box 271356 • Flower Mound TX 75027
|