mirror of
https://github.com/django-components/django-components.git
synced 2025-12-03 20:00:02 +00:00
Merge branch 'master' into add-type-hints
This commit is contained in:
commit
25fe39c6d6
34 changed files with 649 additions and 1068 deletions
|
|
@ -5,12 +5,12 @@
|
|||
{% component_css_dependencies %}
|
||||
</head>
|
||||
<body>
|
||||
{% component "calendar" date=date %}
|
||||
{% component_block "greeting" name='Joe' %}
|
||||
{% component "calendar" date=date %}{% endcomponent %}
|
||||
{% component "greeting" name='Joe' %}
|
||||
{% fill "message" %}
|
||||
Howdy?
|
||||
{% endfill %}
|
||||
{% endcomponent_block %}
|
||||
{% endcomponent %}
|
||||
{% component_js_dependencies %}
|
||||
</body>
|
||||
</html>
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@
|
|||
<div>Your to-dos:</div>
|
||||
<ul>
|
||||
<li>
|
||||
{% component_block "todo" %}
|
||||
{% component "todo" %}
|
||||
{% fill "todo_text" %}
|
||||
Stop forgetting the milk!
|
||||
{% endfill %}
|
||||
{% endcomponent_block %}
|
||||
{% endcomponent %}
|
||||
</li>
|
||||
<li>
|
||||
{% component_block "todo" %}
|
||||
{% component "todo" %}
|
||||
{# As of v0.28, 'fill' tag optional for 1-slot filling if component template specifies a 'default' slot #}
|
||||
Wear all-white clothes to laser tag tournament.
|
||||
{% endcomponent_block %}
|
||||
{% endcomponent %}
|
||||
</li>
|
||||
</ul>
|
||||
</div>
|
||||
Loading…
Add table
Add a link
Reference in a new issue