render fn

This commit is contained in:
m
2026-03-25 12:42:26 +01:00
parent 0272ec3d07
commit 1c23c05cc7
6 changed files with 145 additions and 15 deletions

12
flask_logic/registery.py Normal file
View File

@@ -0,0 +1,12 @@
# component_registry.py
COMPONENTS = {}
def register_component(name, css=None):
def decorator(func):
COMPONENTS[name] = {
"render": func,
"css": css
}
return func
return decorator