-
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.
Co-authored-by: chesn0k <[email protected]>
- Loading branch information
1 parent
d0a6ed7
commit 9a5501b
Showing
6 changed files
with
73 additions
and
14 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,7 @@ | ||
<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> |