Be sure to poke around in your $FAVORITE_LANGUAGE; many of them do. There's a lot of diversity in the HTML templating space, but precisely because of that it can be difficult for word to get out about what tech is available, because there are so many of them.
there are lots of other similar things; one reason this one is more commonly mentioned is because Go itself has put lots of effort (and paid a lot of costs) to compile fast, so transpiling like this can still be pleasant for interactive use.
Gomponents is also a great way to deal with HTML in Go.
While some (including me at first) might dislike that it encourages use of dot imports, Gomponents’ use of them has actually grown on me. The crucial practical issue is to restrict the use of dot imports to your internal template package subdirectory, where it becomes obvious where the functions are coming from.
reply