From c6ad329b233564523a48dd1d81f3c7ce9de0917d Mon Sep 17 00:00:00 2001 From: Mike Shoup Date: Mon, 17 Jun 2019 21:51:43 -0600 Subject: [PATCH] Add base template --- src/humulus/templates/_base.html | 34 ++++++++++++++++++++++++++++++++ src/humulus/templates/index.html | 22 ++++++++++++++++++++- 2 files changed, 55 insertions(+), 1 deletion(-) create mode 100644 src/humulus/templates/_base.html diff --git a/src/humulus/templates/_base.html b/src/humulus/templates/_base.html new file mode 100644 index 0000000..035cfb9 --- /dev/null +++ b/src/humulus/templates/_base.html @@ -0,0 +1,34 @@ +{# + Copyright 2019 Mike Shoup + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and +limitations under the License. +#} + + + + + + + + + {% block title %}{% endblock %} - Humulus + + + {% block body %}{% endblock %} + + + + + + + diff --git a/src/humulus/templates/index.html b/src/humulus/templates/index.html index 986a4a1..fe3eac3 100644 --- a/src/humulus/templates/index.html +++ b/src/humulus/templates/index.html @@ -1 +1,21 @@ -

Hello

+{# + Copyright 2019 Mike Shoup + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and +limitations under the License. +#} +{% extends '_base.html' %} +{% block title %}Home{% endblock %} + +{% block body %} +

Home

+{% endblock %}