fix: render tag inside ifblock
This commit is contained in:
parent
fadae5d39c
commit
777b13ed98
1 changed files with 13 additions and 0 deletions
|
|
@ -1696,6 +1696,19 @@ pub const Parser = struct {
|
||||||
current_body = &false_body;
|
current_body = &false_body;
|
||||||
continue;
|
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
|
// Qualquer outra tag
|
||||||
try current_body.append(allocator, tag_node);
|
try current_body.append(allocator, tag_node);
|
||||||
} else {
|
} else {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue