We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bf92225 commit f9172c7Copy full SHA for f9172c7
src/tim/engine/codegen.nim
@@ -1505,9 +1505,16 @@ proc htmlConstr(node: Node): Sym {.codegen.} =
1505
of nkBool, nkInt, nkFloat, nkString:
1506
discard gen.pushConst(subNode)
1507
gen.chunk.emit(opcTextHtml)
1508
- of nkIdent, nkCall, nkDot, nkInfix:
+ of nkIdent, nkDot, nkInfix:
1509
discard gen.genExpr(subNode)
1510
1511
+ of nkCall:
1512
+ if subNode[0].ident[0] == '@':
1513
+ gen.chunk.emit(opcInnerHtml)
1514
+ gen.genStmt(subNode)
1515
+ else:
1516
+ discard gen.genExpr(subNode)
1517
+ gen.chunk.emit(opcTextHtml)
1518
else:
1519
gen.chunk.emit(opcInnerHtml)
1520
gen.genStmt(subNode)
0 commit comments