We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3c1a997 commit ac60da6Copy full SHA for ac60da6
tdom/processor.py
@@ -38,6 +38,11 @@ class HasHTMLDunder(t.Protocol):
38
def __html__(self) -> str: ... # pragma: no cover
39
40
41
+# TODO: in Ian's original PR, this caching was tethered to the
42
+# TemplateParser. Here, it's tethered to the processor. I suspect we'll
43
+# revisit this soon enough.
44
+
45
46
@lru_cache(maxsize=0 if "pytest" in sys.modules else 512)
47
def _parse_and_cache(cachable: CachableTemplate) -> TNode:
48
return TemplateParser.parse(cachable.template)
0 commit comments