added karaxdsl.flatHtml macro

This commit is contained in:
Andreas Rumpf 2017-04-26 14:51:09 +02:00
commit 21c911ffd3

View file

@ -117,3 +117,8 @@ macro buildHtml*(children: untyped): VNode =
result = tcall2(body(children), nil)
when defined(debugKaraxDsl):
echo repr result
macro flatHtml*(tag: untyped): VNode =
result = tcall2(tag, nil)
when defined(debugKaraxDsl):
echo repr result