diff options
Diffstat (limited to 'tests/showoff/thtml1.nim')
-rw-r--r-- | tests/showoff/thtml1.nim | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/tests/showoff/thtml1.nim b/tests/showoff/thtml1.nim new file mode 100644 index 000000000..cd95c7971 --- /dev/null +++ b/tests/showoff/thtml1.nim @@ -0,0 +1,11 @@ +discard """ + output: "<br>" +""" + +template htmlTag(tag: expr) {.immediate.} = + proc tag(): string = "<" & astToStr(tag) & ">" + +htmlTag(br) +htmlTag(html) + +echo br() |