-
Notifications
You must be signed in to change notification settings - Fork 52
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
First draft of adding support for slots in the SDC generator.
- Loading branch information
1 parent
eb54b51
commit 114a489
Showing
6 changed files
with
98 additions
and
38 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
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 |
---|---|---|
@@ -1,6 +1,8 @@ | ||
<div {{ '{{ attributes }}' }}> | ||
{{ '{# ' }}Keep the outer div whenever possible it is a nice way to ensure the presence of "attributes" {{ '#}' }} | ||
{{ '{% ' }}block example_block {{ '%}' }} | ||
The contents of the example block | ||
{{ '{% ' }}endblock {{ '%}' }} | ||
{% if component_slots|length > 0 %} | ||
{% for slot in component_slots %} | ||
{{ '{% block ' }}{{ slot.name }}{{ '%}' }}{{ '{% endblock %}' }} | ||
{% endfor %} | ||
{% endif %} | ||
</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
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 |
---|---|---|
@@ -1,6 +1,3 @@ | ||
<div {{ attributes }}> | ||
{# Keep the outer div whenever possible it is a nice way to ensure the presence of "attributes" #} | ||
{% block example_block %} | ||
The contents of the example block | ||
{% endblock %} | ||
{% block my_slot %}{% endblock %} | ||
</div> |