Skip to content

Commit 800c8a8

Browse files
committed
fix
Signed-off-by: George Lemon <[email protected]>
1 parent e4b3762 commit 800c8a8

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

src/timpkg/engine/compilers/html.nim

+2-2
Original file line numberDiff line numberDiff line change
@@ -1858,12 +1858,12 @@ template loopEvaluator(kv, items: Node, xel: string) =
18581858
handleBreakContinue(resNode)
18591859
else: discard # todo handle iterable array/objects from Json
18601860
of ntIdentPair:
1861-
for k, v in items.streamContent:
1861+
for k, v in pairs(items.streamContent):
18621862
newScope(scopetables)
18631863
let kvar = ast.newNode(ntLitString)
18641864
kvar.sVal = k
18651865
node.loopItem.identPairs[0].varValue = kvar
1866-
node.loopItem.identPairs[1].varValue = toTimNode(v)
1866+
node.loopItem.identPairs[1].varValue = ast.newStream(v)
18671867
c.varExpr(node.loopItem.identPairs[0], scopetables)
18681868
c.varExpr(node.loopItem.identPairs[1], scopetables)
18691869
let resNode = c.walkNodes(node.loopBody.stmtList,

src/timpkg/engine/parser.nim

-1
Original file line numberDiff line numberDiff line change
@@ -688,7 +688,6 @@ proc parseAttributes(p: var Parser, attrs: var seq[Node],
688688
of tkDot:
689689
walk p
690690
if likely(anyAttrIdent()):
691-
let attrKey = "class"
692691
let attrValueToken = p.curr
693692
let attrValue = p.getAttributeValue(attrValueToken)
694693
add attrs,

0 commit comments

Comments
 (0)