diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-22 20:25:15 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2018-06-22 20:26:09 +0200 |
commit | 81141178a6e32579a34118a3deb64350272f6d2d (patch) | |
tree | 939bc23efc56f161cd582871270b806071f1a4ce | |
parent | 4de98ce1a4d771733e8a04e2d6ee70cb33618acf (diff) | |
download | askama-81141178a6e32579a34118a3deb64350272f6d2d.tar.gz askama-81141178a6e32579a34118a3deb64350272f6d2d.tar.bz2 askama-81141178a6e32579a34118a3deb64350272f6d2d.zip |
Add test for 'super' macro
-rw-r--r-- | testing/templates/deep-mid.html | 1 | ||||
-rw-r--r-- | testing/tests/inheritance.rs | 6 |
2 files changed, 7 insertions, 0 deletions
diff --git a/testing/templates/deep-mid.html b/testing/templates/deep-mid.html index 76ab7e6..a2af4fd 100644 --- a/testing/templates/deep-mid.html +++ b/testing/templates/deep-mid.html @@ -3,6 +3,7 @@ {% block head %} {{ title }} + {% call super() %} {% endblock %} {% block body %} diff --git a/testing/tests/inheritance.rs b/testing/tests/inheritance.rs index 5eb42dd..8c07c4e 100644 --- a/testing/tests/inheritance.rs +++ b/testing/tests/inheritance.rs @@ -142,6 +142,9 @@ fn test_deep() { <head> Test + + <style></style> + </head> <body> @@ -237,6 +240,9 @@ fn test_flat_deep() { <head> Test + + <style></style> + </head> <body> |