Add required kwd to slot tag and add test

Move required slot check to SlotNode.render(); clean up needed

Remove unused code; drop caching

Update docs

Incorporate PR feedback
This commit is contained in:
lemontheme 2023-03-13 10:22:47 +01:00 committed by Emil Stenström
parent a8dfcce24e
commit 898d148382
9 changed files with 143 additions and 138 deletions

View file

@ -10,12 +10,11 @@ if not settings.configured:
"DIRS": ["tests/templates/"],
}
],
COMPONENTS={"template_cache_size": 128, "strict_slots": False},
COMPONENTS={"template_cache_size": 128},
MIDDLEWARE=[
"django_components.middleware.ComponentDependencyMiddleware"
],
DATABASES={},
# DEBUG=True
)
django.setup()