{"product_id":"server-driven-web-apps-with-htmx-any-language-less-code-simpler-code-paperback","title":"Server-Driven Web Apps with Htmx: Any Language, Less Code, Simpler Code - Paperback","description":"\u003cp\u003eby \u003cb\u003eR. Mark Volkmann\u003c\/b\u003e (Author)\u003c\/p\u003e\u003cp\u003e\u003c\/p\u003e\u003cp\u003ehtmx 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.\u003c\/p\u003e \u003cp\u003eThe 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.\u003c\/p\u003e \u003cp\u003e \u003c\/p\u003e\u003cli\u003eRethink web application design; write code in any language that simply responds to requests with htmx snippets.\u003c\/li\u003e \u003cli\u003eDynamically update portions of the current web page directly from the server.\u003c\/li\u003e \u003cli\u003eImplement common patterns such as lazy loading, input validation, CSS transitions, active search, optimistic updates, pagination, infinite scroll, polling, and click-to-edit.\u003c\/li\u003e \u003cli\u003eAdd interactivity with JavaScript and libraries such as Alpine and _hyperscript.\u003c\/li\u003e \u003cli\u003eUse the htmx JavaScript API to simplify DOM operations.\u003c\/li\u003e \u003cli\u003eMake your web apps more secure: escape user-supplied content, use Subresource Integrity hashes, and enforce a Content Security Policy.\u003c\/li\u003e \u003cli\u003eGo beyond the basic HTTP request\/response pattern with WebSockets and server-sent events.\u003c\/li\u003e \u003cp\u003eDiscover a simpler way to implement web applications that emphasizes web fundamentals.\u003c\/p\u003e \u003cp\u003e\u003cb\u003eWhat You Need: \u003c\/b\u003e\u003c\/p\u003e \u003cp\u003e \u003c\/p\u003e\u003cli\u003eA modern web browser and the ability to build and run a local HTTP server using the server-side language and framework of your choice.\u003c\/li\u003e \u003cli\u003eThe code examples are fully compatible with htmx 2.0.\u003c\/li\u003e \u003cdiv\u003e\n\u003cstrong\u003eNumber of Pages:\u003c\/strong\u003e 186\u003c\/div\u003e\u003cdiv\u003e\n\u003cstrong\u003eDimensions:\u003c\/strong\u003e 0.4 x 9.25 x 7.5 IN\u003c\/div\u003e\u003cdiv\u003e\n\u003cstrong\u003ePublication Date:\u003c\/strong\u003e September 17, 2024\u003c\/div\u003e","brand":"Books by splitShops","offers":[{"title":"Default Title","offer_id":41958533464199,"sku":"9798888650769","price":55.01,"currency_code":"USD","in_stock":true}],"thumbnail_url":"\/\/cdn.shopify.com\/s\/files\/1\/0601\/2623\/2711\/files\/c34ff7be80d67a4eca24ac2f12716acd.webp?v=1734073913","url":"https:\/\/booksby.splitshops.com\/products\/server-driven-web-apps-with-htmx-any-language-less-code-simpler-code-paperback","provider":"Books by splitShops","version":"1.0","type":"link"}