summaryrefslogtreecommitdiff
path: root/htmtl
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-01-06 01:28:00 +0200
committerAsko Nõmm <asko@nmm.ee>2025-01-06 01:28:00 +0200
commit0544f795700240e19219521b8b435424fa689a1c (patch)
tree6d8951154a6b8a645b973a192e9666ee4a77e530 /htmtl
parent4ea133608350e6e99008f46cb4c45dd18989b836 (diff)
Fix
Diffstat (limited to 'htmtl')
-rw-r--r--htmtl/parsers/inner_partial.py2
-rw-r--r--htmtl/parsers/outer_partial.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/htmtl/parsers/inner_partial.py b/htmtl/parsers/inner_partial.py
index a2cd7f0..80020aa 100644
--- a/htmtl/parsers/inner_partial.py
+++ b/htmtl/parsers/inner_partial.py
@@ -10,7 +10,7 @@ class InnerPartial(Parser):
def traverse(self, node: Node) -> Optional[Node]:
if "inner-partial" in node.attributes:
template = htmtl.Htmtl(self.expression(node.attributes["inner-partial"]), self.data())
- child_nodes = Dompa(template.html()).nodes()
+ child_nodes = Dompa(template.to_html()).get_nodes()
node.children = child_nodes
node.attributes.pop("inner-partial")
diff --git a/htmtl/parsers/outer_partial.py b/htmtl/parsers/outer_partial.py
index de96771..69866ad 100644
--- a/htmtl/parsers/outer_partial.py
+++ b/htmtl/parsers/outer_partial.py
@@ -10,7 +10,7 @@ class OuterPartial(Parser):
def traverse(self, node: Node) -> Optional[Node]:
if "outer-partial" in node.attributes:
template = htmtl.Htmtl(self.expression(node.attributes["outer-partial"]), self.data())
- replacement_nodes = Dompa(template.html()).nodes()
+ replacement_nodes = Dompa(template.to_html()).get_nodes()
return FragmentNode(children=replacement_nodes)