Skip to content

Commit ac60da6

Browse files
committed
A note
1 parent 3c1a997 commit ac60da6

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

tdom/processor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ class HasHTMLDunder(t.Protocol):
3838
def __html__(self) -> str: ... # pragma: no cover
3939

4040

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+
4146
@lru_cache(maxsize=0 if "pytest" in sys.modules else 512)
4247
def _parse_and_cache(cachable: CachableTemplate) -> TNode:
4348
return TemplateParser.parse(cachable.template)

0 commit comments

Comments
 (0)