switch to comments as placeholder nodes (#2579)

This commit is contained in:
Evan Almloff authored and GitHub committed 2024-07-02 15:31:18 -07:00
1 parent 30f6986283
commit 4cab834640
8 files changed
+29 -24

No files matched your search

+1 -1
View File
@@ -34,7 +34,7 @@ fn render_template_node(node: &TemplateNode, out: &mut String) -> std::fmt::Resu
write!(out, "</{tag}>")?;
}
TemplateNode::Text { text: t } => write!(out, "{t}")?,
TemplateNode::Dynamic { id: _ } => write!(out, "<pre hidden />")?,
TemplateNode::Dynamic { id: _ } => write!(out, "<!--placeholder-->")?,
};
Ok(())
}