mirror of
https://github.com/django-components/django-components.git
synced 2025-07-16 04:54:59 +00:00
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:
parent
a8dfcce24e
commit
898d148382
9 changed files with 143 additions and 138 deletions
|
@ -17,11 +17,5 @@ class AppSettings:
|
|||
def TEMPLATE_CACHE_SIZE(self):
|
||||
return self.settings.setdefault("template_cache_size", 128)
|
||||
|
||||
@property
|
||||
def STRICT_SLOTS(self):
|
||||
"""If True, component slots that are declared must be explicitly filled; else
|
||||
a TemplateSyntaxError is raised."""
|
||||
return self.settings.setdefault("strict_slots", False)
|
||||
|
||||
|
||||
app_settings = AppSettings()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue