mirror of
https://github.com/django-components/django-components.git
synced 2025-09-09 15:40:30 +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
|
```htmldjango
|
||||||
{% load django_components %}
|
{% load django_components %}
|
||||||
{% block extra_media %}{% component_dependencies %}{% endblock %}
|
<!DOCTYPE html>
|
||||||
{% block main %}
|
<html>
|
||||||
{% component name="calendar" date=custom_date %}
|
<head>
|
||||||
{% endblock %}
|
<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
|
# Running the tests
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue