mirror of
https://github.com/django-components/django-components.git
synced 2025-08-31 11:17:21 +00:00
Make docs easier to understand by removing blocks.
This commit is contained in:
parent
1d2a8a6909
commit
ef663e4478
1 changed files with 11 additions and 4 deletions
15
README.md
15
README.md
|
@ -30,10 +30,17 @@ In your templates, use your component by first importing the django_components t
|
|||
|
||||
```htmldjango
|
||||
{% load django_components %}
|
||||
{% block extra_media %}{% component_dependencies %}{% endblock %}
|
||||
{% block main %}
|
||||
{% component name="calendar" date=custom_date %}
|
||||
{% endblock %}
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>My example calendar</title>
|
||||
{% component_dependencies %}
|
||||
</head>
|
||||
<body>
|
||||
{% component name="calendar" date=custom_date1 %}
|
||||
{% component name="calendar" date=custom_date2 %}
|
||||
</body>
|
||||
<html>
|
||||
```
|
||||
|
||||
# Running the tests
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue