Make docs easier to understand by removing blocks.

This commit is contained in:
Emil Stenström 2015-06-14 14:49:39 +02:00
parent 1d2a8a6909
commit ef663e4478

View file

@ -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