Dominik Süß

fighting computers since 1999

Templ and LSP madness

Weekly Wrap 26/7


This week, I finally found the time to try out templ in detail. Turns out: I love it! It solves the problem of passing allong the global context elegantly, has better flow control and allows hooking go functions in a type safe way. IMHO, the main advantage over gomponents which I tried out before is the much nicer flow control and built in reloading.

Thanks to Jacky Li's excelent articels I managed to set up emacs with rassumfrassum + superhtml + templ-ts-mode to get LSP capabilities for both templ and html. I'm currently running a fork of superhtml which disables some checks incompatible with templ. It still shows lots of false positives but I might publish it at some point.

During this week, my home cluster also started throwing weird errors (which happens from time to time) but this time I took action and started cleaning up. The cluster is constantly throwing some issues but is stable most of the time but I'd really like the peace of mind knowing everything is stable and not throwing warnings all the time 😅.