News for hackers. Stuff that matters.
Re:Templ: A language for writing HTML user interfaces in Go by arccy on Monday December 11, 2023 @06:30AM (#38599660)
i just wish gomponents/html would define an alias for gomponents.Text so i don't have the impedance mismatch of switching the package qualifier

but otherwise, I'm quite liking it so far

Re:Templ: A language for writing HTML user interfaces in Go by markusw on Monday December 11, 2023 @06:55AM (#38599802)
Hmm. I see what you mean, but <text> isn't a valid HTML element, so that wouldn't work for that alone.

But try dot imports for the html package and you don't have to have a package qualifier for most of your view code at all! :D