summaryrefslogtreecommitdiff
path: root/htmtl/expression_modifier.py
diff options
context:
space:
mode:
authorAsko Nõmm <asko@nmm.ee>2024-12-31 00:30:06 +0200
committerAsko Nõmm <asko@nmm.ee>2024-12-31 00:30:06 +0200
commit77f6f957480d3674756ab6e5166641a3bab3e696 (patch)
tree27b9cffcc646b44a71828a6ed95ddc811f125f8f /htmtl/expression_modifier.py
parentcc92131a707f05e54a8a74ca8a61a6953c1d3244 (diff)
bump
Diffstat (limited to 'htmtl/expression_modifier.py')
-rw-r--r--htmtl/expression_modifier.py11
1 files changed, 10 insertions, 1 deletions
diff --git a/htmtl/expression_modifier.py b/htmtl/expression_modifier.py
index 1986d92..69d6a86 100644
--- a/htmtl/expression_modifier.py
+++ b/htmtl/expression_modifier.py
@@ -7,4 +7,13 @@ class ExpressionModifier(ABC):
@abstractmethod
def modify(self, value: Any, opts: list[Any]) -> Any:
- pass \ No newline at end of file
+ pass
+
+
+def modifier(name: str):
+ def wrapper(cls: type[ExpressionModifier]):
+ cls.name = name
+
+ return cls
+
+ return wrapper \ No newline at end of file