From 3d75bcfe786e23be26302c5d39658d75d19468b7 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 22 Jun 2018 16:03:53 +0200 Subject: Add test for deep inheritance --- testing/templates/deep-base.html | 14 ++++++++++++++ testing/templates/deep-kid.html | 10 ++++++++++ testing/templates/deep-mid.html | 19 +++++++++++++++++++ 3 files changed, 43 insertions(+) create mode 100644 testing/templates/deep-base.html create mode 100644 testing/templates/deep-kid.html create mode 100644 testing/templates/deep-mid.html (limited to 'testing/templates') diff --git a/testing/templates/deep-base.html b/testing/templates/deep-base.html new file mode 100644 index 0000000..0d874ac --- /dev/null +++ b/testing/templates/deep-base.html @@ -0,0 +1,14 @@ +{% import "macro.html" as libb %} + + + {% block head %} + + {% endblock %} + + + {% block body %} + {% call libb::thrice("nav") %} + Copyright {{ year }} + {% endblock %} + + diff --git a/testing/templates/deep-kid.html b/testing/templates/deep-kid.html new file mode 100644 index 0000000..a2aa105 --- /dev/null +++ b/testing/templates/deep-kid.html @@ -0,0 +1,10 @@ +{% extends "deep-mid.html" %} +{% import "macro.html" as libk %} + +{% block head %} + +{% endblock %} + +{% block content %} + {% call libk::thrice(item) %} +{% endblock %} diff --git a/testing/templates/deep-mid.html b/testing/templates/deep-mid.html new file mode 100644 index 0000000..76ab7e6 --- /dev/null +++ b/testing/templates/deep-mid.html @@ -0,0 +1,19 @@ +{% extends "deep-base.html" %} +{% import "macro.html" as libm %} + +{% block head %} + {{ title }} +{% endblock %} + +{% block body %} +
+
+ {% block content %} + No content found + {% endblock %} +
+ +
+{% endblock %} -- cgit