emerald
emerald copied to clipboard
Can not format a "complex" expression in a nice way
import emerald, json
proc homeView(test: JsonNode) {.html_templ.} =
html(lang = "en"):
body:
p: test["str"].str # This works
p: test["int"].num # This doesnt
p: $(test["int"].num) # This doesnt as well, but differently
p: "" & $(test["int"].num) # Ok, this works, but looks strange =)