summary refs log tree commit diff stats
path: root/tests/showoff/thtml1.nim
diff options
context:
space:
mode:
authorAraq <rumpf_a@web.de>2014-01-18 01:16:45 +0100
committerAraq <rumpf_a@web.de>2014-01-18 01:16:45 +0100
commit36afdca87f3757c8468cbfa622de693447df7e07 (patch)
tree3b739b667574c12dea389a17d9d84291fd355463 /tests/showoff/thtml1.nim
parent5073914b8697a9fd1dc38bebef434b50850f2861 (diff)
parent3f8bfb1e988322ab60cc54184d63a00906260665 (diff)
downloadNim-36afdca87f3757c8468cbfa622de693447df7e07.tar.gz
resolved conflicts with master
Diffstat (limited to 'tests/showoff/thtml1.nim')
-rw-r--r--tests/showoff/thtml1.nim11
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()