-
-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: allow allow a slot with a same name to be
- Loading branch information
1 parent
29c931f
commit 3b2d63e
Showing
4 changed files
with
178 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{% load component_tags %} | ||
{% slot "header" %}START{% endslot %} | ||
<div class="dashboard-component"> | ||
{% component "calendar" date="2020-06-06" %} | ||
{% fill "header" %} {# fills and slots with same name relate to diff. things. #} | ||
{% slot "header" %}NESTED{% endslot %} | ||
{% endfill %} | ||
{% fill "body" %}Here are your to-do items for today:{% endfill %} | ||
{% endcomponent %} | ||
<ol> | ||
{% for item in items %} | ||
<li>{{ item }}</li> | ||
{% slot "header" %}LOOP {{ item }} {% endslot %} | ||
{% endfor %} | ||
</ol> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters