mirror of
https://github.com/django-components/django-components.git
synced 2025-10-21 11:11:43 +00:00
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:
parent
296da4a1e8
commit
fe67d90547
28 changed files with 1181 additions and 594 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue