How would one achieve something like the following Python in Nim? Is it possible?
args = {"bar": 1}
if cond:
args["x"] = 2
args["y"] = "3"
foo(**args)
I think you can just use setAttr on the VNode:
var n = buildHtml(tdiv):
content
if cond:
n.setAttr "hx-trigger", "revealed"
You don't have to use the DSL for everything...