Live data from Hacker News

Show HN: Gomponents, HTML components in pure Go

gomponents.com

1–10 of 50 posts

Show HN: Gomponents, HTML components in pure Go

#1
Hey everyone! I just released v1.0.0 of gomponents last week. It's an HTML component builder in pure Go, with a DSL-like HTML syntax. It's been 4 years in the making, and makes it really easy to build HTML in your web apps.

Show HN: Gomponents, HTML components in pure Go
gomponents.com

Re: Show HN: Gomponents, HTML components in pure Go

#7
So I like the idea of it but am feeling a bit wary about UI elements as runtime types. Good thing about this is the strong typing but then you have a fair bit of lispifying going on which I swing back and forth on. I actually like templ's approach on this (though hate the extra build step). So I finally just settled on plain old go templates. Not quite eloquent but just feels staple and simple. Clearly a lot of get off my lawn type of biases here :)

Re: Show HN: Gomponents, HTML components in pure Go

#9

are event handlers possible? neither the Github repo nor the linked page showed an example of a button or form submission.

This is basically a HTML templating library. It's server side only. Or do you mean event handlers in the HTML attributes?
Post reply on HN