fix: render tag inside ifblock

This commit is contained in:
Lucas F. 2026-01-22 10:15:11 -03:00
parent fadae5d39c
commit 777b13ed98

View file

@ -1696,6 +1696,19 @@ pub const Parser = struct {
current_body = &false_body;
continue;
}
var tag: Node = tag_node;
if (tag_node.tag.?.kind == .comment) {
try self.parseComment();
continue;
} else {
if (try self.parseTagContent(allocator, tag_node)) |tn| {
tag.tag.?.body = tn;
try current_body.append(allocator, tag);
continue;
}
}
// Qualquer outra tag
try current_body.append(allocator, tag_node);
} else {