summaryrefslogtreecommitdiff
path: root/htmtl/parser.py
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2025-01-03 21:54:17 +0200
committerAsko Nõmm <asko@nmm.ee>2025-01-03 21:54:17 +0200
commite1af30fad78b2740312d631b0d4a701e30d915df (patch)
tree4e1d531f70b2818f43ff07f39a96aa4d868e09fd /htmtl/parser.py
parent61c0b0d134d05c1647fa3356486d209bac87d8f6 (diff)
Implement `InnerPartial` and `OuterPartial` parsers.
Diffstat (limited to 'htmtl/parser.py')
-rw-r--r--htmtl/parser.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/htmtl/parser.py b/htmtl/parser.py
index a91de0a..393a5bd 100644
--- a/htmtl/parser.py
+++ b/htmtl/parser.py
@@ -12,6 +12,9 @@ class Parser(ABC):
self.__data = data
self.__expression_parser = expression_parser
+ def data(self) -> dict[str, Any]:
+ return self.__data
+
def expression(self, expression: str) -> Any:
return self.__expression_parser.parse(expression)