This doesn't work:
template bar() {.dirty.} =
echo a
template foo() =
let a = 5
bar()
foo()
but this does:
template bar() {.dirty.} =
echo a
template foo() {.dirty.} =
let a = 5
bar()
foo()
Is this a bug or I don't understand something about templates?
