{"product_id":"server-driven-web-apps-with-htmx-r-mark-volkmann-9798888650769","title":"Server-Driven Web Apps with htmx","description":"htmx is a library that adds logic and server interaction to HTML; you get the effect of using a front-end SPA framework without writing front-end code. Use any server-side programming language and framework to build server applications with endpoints that simply return snippets of HTML. Dynamically update portions of the current web page from HTTP responses. Add interactivity with JavaScript and libraries such Alpine and _hyperscript. Make your apps more secure by escaping user-supplied content and specifying a Content Security Policy. Go beyond basic HTTP requests with WebSockets and server-sent events.\nThe 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.\nRethink web application design; write code in any language that simply responds to requests with htmx snippets.\nDynamically update portions of the current web page directly from the server.\nImplement common patterns such as lazy loading, input validation, CSS transitions, active search, optimistic updates, pagination, infinite scroll, polling, and click-to-edit.\nAdd interactivity with JavaScript and libraries such as Alpine and _hyperscript.\nUse the htmx JavaScript API to simplify DOM operations.\nMake your web apps more secure: escape user-supplied content, use Subresource Integrity hashes, and enforce a Content Security Policy.\nGo beyond the basic HTTP request\/response pattern with WebSockets and server-sent events.\nDiscover a simpler way to implement web applications that emphasizes web fundamentals.\nWhat You Need:\nA modern web browser and the ability to build and run a local HTTP server using the server-side language and framework of your choice.\nThe code examples are fully compatible with htmx 2.0.","brand":"Pragmatic Bookshelf","offers":[{"title":"Default Title","offer_id":51279531835680,"sku":"9798888650769","price":28.99,"currency_code":"GBP","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0753\/2812\/7264\/files\/9798888650769.jpg?v=1781527719","url":"https:\/\/bookcorner.com\/products\/server-driven-web-apps-with-htmx-r-mark-volkmann-9798888650769","provider":"The Book Corner","version":"1.0","type":"link"}