@xigoi, can't you simply call "dedent" as follows?
if something:
let nimCode = """
for foo in foos:
echo foo
""".dedent
RunI would expect that dedent would be called at compile time given that the input is a constant, wouldn't it?
