refactor: Backbone for passing JS and CSS variables (#861)

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
This commit is contained in:
Juro Oravec 2024-12-28 19:27:19 +01:00 committed by GitHub
parent 296da4a1e8
commit fe67d90547
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
28 changed files with 1181 additions and 594 deletions

View file

@ -176,6 +176,12 @@ def parametrize_context_behavior(cases: List[ContextBehParam], settings: Optiona
self._stop_gen_id_patch()
self._start_gen_id_patch()
# Reset template cache
from django_components.template import template_cache
if template_cache: # May be None if the cache was not initialized
template_cache.clear()
case_has_data = not isinstance(case, str)
if isinstance(case, str):