aboutsummaryrefslogtreecommitdiff
path: root/tests/data
diff options
context:
space:
mode:
authorDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-17 16:12:55 +0100
committerDanny van Kooten <dannyvankooten@users.noreply.github.com>2020-03-17 16:12:55 +0100
commitf5f04edbf832aa2e219c621b9895c33dce3e47ba (patch)
tree5f99786426b1df0402f3c6d61b590a2376c05862 /tests/data
parent735d8becf2595c8fee990b55e2d323317f019c8d (diff)
downloadunja-f5f04edbf832aa2e219c621b9895c33dce3e47ba.tar.gz
unja-f5f04edbf832aa2e219c621b9895c33dce3e47ba.zip
first stab at supporting template inheritance
Diffstat (limited to 'tests/data')
-rw-r--r--tests/data/01/base.tmpl9
-rw-r--r--tests/data/01/child.tmpl5
2 files changed, 14 insertions, 0 deletions
diff --git a/tests/data/01/base.tmpl b/tests/data/01/base.tmpl
new file mode 100644
index 0000000..6ca89cb
--- /dev/null
+++ b/tests/data/01/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/01/child.tmpl b/tests/data/01/child.tmpl
new file mode 100644
index 0000000..05467a6
--- /dev/null
+++ b/tests/data/01/child.tmpl
@@ -0,0 +1,5 @@
+{% extends "base.tmpl" %}
+
+{% block content %}
+Child content
+{% endblock %} \ No newline at end of file