From 723567ba0c8d28a292b87d6d65cb97e4b4406e4b Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Sun, 5 Feb 2017 15:18:47 +0100 Subject: Implement basic support for template inheritance --- testing/templates/base.html | 2 ++ testing/templates/child.html | 2 ++ 2 files changed, 4 insertions(+) create mode 100644 testing/templates/base.html create mode 100644 testing/templates/child.html (limited to 'testing/templates') diff --git a/testing/templates/base.html b/testing/templates/base.html new file mode 100644 index 0000000..f40d867 --- /dev/null +++ b/testing/templates/base.html @@ -0,0 +1,2 @@ +{% block content %}{% endblock %} +Copyright 2017 diff --git a/testing/templates/child.html b/testing/templates/child.html new file mode 100644 index 0000000..23aed37 --- /dev/null +++ b/testing/templates/child.html @@ -0,0 +1,2 @@ +{% extends "base.html" %} +{% block content %}Content goes here{% endblock %} -- cgit