summaryrefslogtreecommitdiff
path: root/htmtl/htmtl.py
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2024-12-31 00:50:26 +0200
committerAsko Nõmm <asko@nmm.ee>2024-12-31 00:50:26 +0200
commitec34e42b87ed39ccb5d4f5b278be0ac73a77a55e (patch)
tree993dc1e907c6f99d4d1c37a5ed8581585ef028c6 /htmtl/htmtl.py
parent77f6f957480d3674756ab6e5166641a3bab3e696 (diff)
bump
Diffstat (limited to 'htmtl/htmtl.py')
-rw-r--r--htmtl/htmtl.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/htmtl/htmtl.py b/htmtl/htmtl.py
index d9fb312..1deecac 100644
--- a/htmtl/htmtl.py
+++ b/htmtl/htmtl.py
@@ -19,7 +19,6 @@ class Htmtl:
self.__data = data or {}
self.__attribute_parsers = self.__default_attribute_parsers()
self.__expression_modifiers = self.__default_expression_modifiers()
- self.__parse()
@staticmethod
def __default_attribute_parsers() -> list[type[AttributeParser]]:
@@ -56,4 +55,6 @@ class Htmtl:
self.__dom.update(parser_instance.traverse)
def html(self) -> str:
+ self.__parse()
+
return self.__dom.html() \ No newline at end of file