aboutsummaryrefslogtreecommitdiff
path: root/tests/data/inheritance-depth-1
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-18 20:58:05 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-18 20:58:05 +0100
commitdd1a5a34eaba875746d48f47056ee2748cc452ee (patch)
treed9831677ab3501ec09d5183ac307a9071926529a /tests/data/inheritance-depth-1
parent303f93d34cfd8cc545b5c38c3a4712bc30e5177f (diff)
downloadunja-dd1a5a34eaba875746d48f47056ee2748cc452ee.tar.gz
unja-dd1a5a34eaba875746d48f47056ee2748cc452ee.zip
add support for multi-level inheritance (depth > 1)
Diffstat (limited to 'tests/data/inheritance-depth-1')
-rw-r--r--tests/data/inheritance-depth-1/base.tmpl9
-rw-r--r--tests/data/inheritance-depth-1/one.tmpl5
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/data/inheritance-depth-1/base.tmpl b/tests/data/inheritance-depth-1/base.tmpl
new file mode 100644
index 0000000..241c78c
--- /dev/null
+++ b/tests/data/inheritance-depth-1/base.tmpl
@@ -0,0 +1,9 @@
+Header
+
+{%- block content %}
+Content
+{%- endblock %}
+
+{%- block footer %}
+Footer
+{%- endblock -%} \ No newline at end of file
diff --git a/tests/data/inheritance-depth-1/one.tmpl b/tests/data/inheritance-depth-1/one.tmpl
new file mode 100644
index 0000000..05467a6
--- /dev/null
+++ b/tests/data/inheritance-depth-1/one.tmpl
@@ -0,0 +1,5 @@
+{% extends "base.tmpl" %}
+
+{% block content %}
+Child content
+{% endblock %} \ No newline at end of file