{"repo":"maragudk/gomponents","free":true,"listed":false,"github":"https://github.com/maragudk/gomponents","clone":"git clone https://github.com/maragudk/gomponents.git","description":"HTML components in pure Go.","language":"Go","stars":1873,"topics":["golang","go","html","gomponents"],"license":"MIT","category":"dev-tools","readme_excerpt":"Tired of complex template languages? Try HTML components in pure Go. gomponents are HTML components written in pure Go. They render to HTML 5, and make it easy for you to build reusable components. So you can focus on building your app instead of learning yet another templating language. Made with ✨sparkles✨ by maragu: independent software consulting for cloud-native Go apps & AI engineering. Contact me at markus@maragu.dk for consulting work, or perhaps an invoice to support this project? Features Check out www.gomponents.com for an introduction or pkg.go.dev/maragu.dev/gomponents for the official docs. - Build reusable HTML components - Write declarative HTML 5 in Go without all the strings, so you get - Type safety from the compiler - Auto-completion from the IDE - Easy debugging with the standard Go debugger - Automatic formatting with gofmt / goimports - Simple API that's easy to learn and use (you know most already if you know HTML) - Useful helpers like - Text and Textf that insert HTML-escaped text, - Raw and Rawf for inserting raw strings, - Map for mapping data to components and Group for grouping components, - and If / Iff for conditional rendering. - No external dependencies - Mature and stable, no breaking changes Usage (Some people don't like dot-imports, and luckily it's completely optional.) For a more complete example, see the examples directory. There's also the gomponents-starter-kit for a full application template. Architecture gomponents is organized into","default_branch":null,"files":null,"tree":[],"storefront":"/r/maragudk","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/maragudk/gomponents/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."}