diff options
Diffstat (limited to 'lib/pure/htmlgen.nim')
-rw-r--r-- | lib/pure/htmlgen.nim | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/pure/htmlgen.nim b/lib/pure/htmlgen.nim index d712e53f3..bffb33b80 100644 --- a/lib/pure/htmlgen.nim +++ b/lib/pure/htmlgen.nim @@ -482,7 +482,7 @@ macro `var`*(e: expr): expr {.immediate.} = let e = callsite() result = xmlCheckedTag(e, "var", commonAttr) -when isMainModule: +when not defined(testing) and isMainModule: var nim = "Nim" echo h1(a(href="http://nim-lang.org", nim)) echo form(action="test", `accept-charset` = "Content-Type") |