{"repo":"donseba/go-htmx","free":true,"listed":false,"github":"https://github.com/donseba/go-htmx","clone":"git clone https://github.com/donseba/go-htmx.git","description":"Seamless HTMX integration in golang applications","language":"Go","stars":594,"topics":["golang","htmx","go-htmx","hypermedia","webdev","webdevelopment"],"license":"MIT","category":"dev-tools","readme_excerpt":"go-htmx Seamless HTMX integration in golang applications. Description This repository contains the htmx Go package, designed to enhance server-side handling of HTML generated with the HTMX library. It provides a set of tools to easily manage swap behaviors, trigger configurations, and other HTMX-related functionalities in a Go server environment. Disclaimer This package is built around the specific need to be able to work with HTMX in a Go environment. All functionality found in this repository has a certain use case in various projects that I have worked on. - Design decisions are documented in the DESIGN DECISIONS.md file. - Locality of Behavior is documented in the LOB.md file. Features - Component Rendering : Render (partial) components in response to HTMX requests, enhancing user experience and performance. - Swap Configuration : Configure swap behaviors for HTMX responses, including style, timing, and scrolling. - Trigger Management : Define and manage triggers for HTMX events, supporting both simple and detailed triggers. - Middleware Support : Integrate HTMX seamlessly with Go middleware for easy HTMX header configuration. - io.Writer Support : The HTMX handler implements the io.Writer interface for easy integration with existing Go code. --- Getting Started Installation To install the htmx package, use the following command: Usage initialize the htmx service like so : HTMX Request Checks The htmx package provides several functions to determine the nature of HTMX requ","default_branch":null,"files":null,"tree":[],"storefront":"/r/donseba","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/donseba/go-htmx/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}