mirror of
https://github.com/django-components/django-components.git
synced 2025-08-03 22:08:17 +00:00
Update README.md
This commit is contained in:
parent
ec656f25cb
commit
864c85b067
1 changed files with 1 additions and 1 deletions
|
@ -523,7 +523,7 @@ only if the slot 'subtitle' is _not_ filled.
|
|||
|
||||
### Setting Up `ComponentDependencyMiddleware`
|
||||
|
||||
`ComponentDependencyMiddleware` is a Django middleware designed to manage and inject CSS/JS dependencies for rendered components dynamically. It ensures that the necessary stylesheets and scripts are loaded in your HTML responses, based on the components used in your Django templates.
|
||||
`ComponentDependencyMiddleware` is a Django middleware designed to manage and inject CSS/JS dependencies for rendered components dynamically. It ensures that only the necessary stylesheets and scripts are loaded in your HTML responses, based on the components used in your Django templates.
|
||||
|
||||
To set it up, add the middleware to your `MIDDLEWARE` in settings.py:
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue