I normally use karax and realize it is typically recommended. But how do I use the var list to dynamically generate varargs li("one"), li("two") for the ul macro?
import std/dom
import std/htmlgen
var
root = getElementById("ROOT")
var list = @["one", "two"]
root.outerHTML = main(id = "main-id",
h1(id = "title-id-1", "Test List"),
ul(
li("one"),
li("two")
)
# ul( list items here )
)