emerald icon indicating copy to clipboard operation
emerald copied to clipboard

Can not format a "complex" expression in a nice way

Open yglukhov opened this issue 7 years ago • 0 comments

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 =)

yglukhov avatar Aug 11 '16 19:08 yglukhov