aboutsummaryrefslogtreecommitdiff
path: root/tests/data
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
parent303f93d34cfd8cc545b5c38c3a4712bc30e5177f (diff)
downloadunja-dd1a5a34eaba875746d48f47056ee2748cc452ee.tar.gz
unja-dd1a5a34eaba875746d48f47056ee2748cc452ee.zip
add support for multi-level inheritance (depth > 1)
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/inheritance-depth-1/base.tmpl (renamed from tests/data/01/base.tmpl)0
-rw-r--r--tests/data/inheritance-depth-1/one.tmpl (renamed from tests/data/01/child.tmpl)0
-rw-r--r--tests/data/inheritance-depth-2/base.tmpl9
-rw-r--r--tests/data/inheritance-depth-2/one.tmpl9
-rw-r--r--tests/data/inheritance-depth-2/two.tmpl5
5 files changed, 23 insertions, 0 deletions
diff --git a/tests/data/01/base.tmpl b/tests/data/inheritance-depth-1/base.tmpl
index 241c78c..241c78c 100644
--- a/tests/data/01/base.tmpl
+++ b/tests/data/inheritance-depth-1/base.tmpl
diff --git a/tests/data/01/child.tmpl b/tests/data/inheritance-depth-1/one.tmpl
index 05467a6..05467a6 100644
--- a/tests/data/01/child.tmpl
+++ b/tests/data/inheritance-depth-1/one.tmpl
diff --git a/tests/data/inheritance-depth-2/base.tmpl b/tests/data/inheritance-depth-2/base.tmpl
new file mode 100644
index 0000000..2f5157c
--- /dev/null
+++ b/tests/data/inheritance-depth-2/base.tmpl
@@ -0,0 +1,9 @@
+0
+
+{%- block content %}
+0
+{%- endblock %}
+
+{%- block footer %}
+0
+{%- endblock -%} \ No newline at end of file
diff --git a/tests/data/inheritance-depth-2/one.tmpl b/tests/data/inheritance-depth-2/one.tmpl
new file mode 100644
index 0000000..1e93d11
--- /dev/null
+++ b/tests/data/inheritance-depth-2/one.tmpl
@@ -0,0 +1,9 @@
+{% extends "base.tmpl" %}
+
+{% block content %}
+1
+{% endblock %}
+
+{% block footer %}
+1
+{% endblock %} \ No newline at end of file
diff --git a/tests/data/inheritance-depth-2/two.tmpl b/tests/data/inheritance-depth-2/two.tmpl
new file mode 100644
index 0000000..cbdbe34
--- /dev/null
+++ b/tests/data/inheritance-depth-2/two.tmpl
@@ -0,0 +1,5 @@
+{% extends "one.tmpl" %}
+
+{% block footer %}
+2
+{% endblock %} \ No newline at end of file