Add Comments

This commit is contained in:
马一丁
2025-11-13 11:37:13 +08:00
parent 4846b1f758
commit 3e4aa6366d
12 changed files with 72 additions and 3 deletions
+1
View File
@@ -13,6 +13,7 @@ class HTMLRenderer:
"""Document IR → HTML 渲染器"""
def __init__(self, config: Dict[str, Any] | None = None):
"""初始化渲染器缓存并允许注入额外配置(如主题覆盖)"""
self.config = config or {}
self.document: Dict[str, Any] = {}
self.widget_scripts: List[str] = []