mirror of
https://github.com/django-components/django-components.git
synced 2025-08-12 02:08:00 +00:00
feat: component caching (#1097)
* feat: allow to set defaults * refactor: remove input validation and link to it * feat: component URL * feat: component caching * refactor: Mark `OnComponentRenderedContext` as extension hook for docs * docs: update changelog * refactor: simplify hash methods
This commit is contained in:
parent
ef15117459
commit
b6994e9ad3
17 changed files with 655 additions and 45 deletions
|
@ -750,11 +750,12 @@ class InternalSettings:
|
|||
)
|
||||
|
||||
# Prepend built-in extensions
|
||||
from django_components.extensions.cache import CacheExtension
|
||||
from django_components.extensions.defaults import DefaultsExtension
|
||||
from django_components.extensions.url import UrlExtension
|
||||
from django_components.extensions.view import ViewExtension
|
||||
|
||||
extensions = [DefaultsExtension, ViewExtension, UrlExtension] + list(extensions)
|
||||
extensions = [CacheExtension, DefaultsExtension, ViewExtension, UrlExtension] + list(extensions)
|
||||
|
||||
# Extensions may be passed in either as classes or import strings.
|
||||
extension_instances: List["ComponentExtension"] = []
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue