-
-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: TemplateDoesNotExist when using {% extends %} on main template a…
…nd two components with same parent template (#862)
- Loading branch information
1 parent
6bb73bd
commit 85fc6e3
Showing
9 changed files
with
876 additions
and
394 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
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,7 @@ | ||
{% load component_tags %} | ||
{% block before_custom %}{% endblock %} | ||
<custom-template> | ||
<header>{% slot "header" %}Default header{% endslot %}</header> | ||
<main>{% slot "main" %}Default main{% endslot %}</main> | ||
<footer>{% slot "footer" %}Default footer{% endslot %}</footer> | ||
</custom-template> |
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,7 @@ | ||
{% load component_tags %} | ||
{% block before_custom %}{% endblock %} | ||
<custom-template> | ||
<header>{% slot "header" %}Default header{% endslot %}</header> | ||
<main>{% slot "main" %}Default main{% endslot %}</main> | ||
<footer>{% slot "footer" %}Default footer{% endslot %}</footer> | ||
</custom-template> |
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,4 @@ | ||
{% extends "simple_template.html" %} | ||
{% block before_custom %} | ||
<div>BLOCK OVERRIDEN</div> | ||
{% endblock %} |
Oops, something went wrong.