I noticed that stdlib's htmlgen's page says that it's better to use Karax's htmlgen: https://nim-lang.org/docs/htmlgen.html
Is this always the case? With Karax how does server side rendering work? I noticed that tdiv is used to build a virtual DOM, but what if I just want plain HTML?
You can use karax for server-side rendering. https://github.com/pragmagic/karax#server-side-html-rendering
I also use karax native as a simple view. https://github.com/planety/prologue/blob/master/examples/todolist/templates/basic.nim