mirror of
https://github.com/django-components/django-components.git
synced 2025-07-07 17:34:59 +00:00
docs: add section numbering to Rendering components page (#1288)
This commit is contained in:
parent
514b8206b5
commit
0c7e17d8cf
1 changed files with 2 additions and 2 deletions
|
@ -160,7 +160,7 @@ def my_view(request):
|
|||
response_class = MyCustomResponse
|
||||
```
|
||||
|
||||
### Rendering slots
|
||||
### 4. Rendering slots
|
||||
|
||||
Slots content are automatically escaped by default to prevent XSS attacks.
|
||||
|
||||
|
@ -203,7 +203,7 @@ Calendar.render(
|
|||
[`format_html`](https://docs.djangoproject.com/en/5.2/ref/utils/#django.utils.html.format_html)
|
||||
and [`mark_safe`](https://docs.djangoproject.com/en/5.2/ref/utils/#django.utils.safestring.mark_safe).
|
||||
|
||||
### Component views and URLs
|
||||
### 5. Component views and URLs
|
||||
|
||||
For web applications, it's common to define endpoints that serve HTML content (AKA views).
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue