News for hackers. Stuff that matters.
Re:Show HN: Use Go's HTML/template to write React-like code by lucideer on Monday May 27, 2024 @12:05PM (#40492047)
JetBrains "Inject" is fine for contiguous embeds like JS in XML, but doesn't cut it for inline intertwined string-templating.

E.g. (from the article):

  <a class="button {{if .IsPrimary}}primary{{end}}" {{if eq .IsSubmit true}}type="submit"{{else}} href="{{.Link}}"{{end}}>

There are no comments on this comment yet.