From b885bf30e4603ca8d78647ef81f8bf20be449acd Mon Sep 17 00:00:00 2001 From: Damien De Paoli Date: Sat, 14 Nov 2020 11:20:52 +1100 Subject: [PATCH] now using jinja2 block / template, rather than jscript to fill content --- templates/author.html | 18 +++---------- templates/authors.html | 4 +++ templates/base.html | 59 ++++++++++++++++++++++++++++++++++++++++++ 3 files changed, 66 insertions(+), 15 deletions(-) create mode 100644 templates/base.html diff --git a/templates/author.html b/templates/author.html index 6bd696c..2c9d953 100644 --- a/templates/author.html +++ b/templates/author.html @@ -1,16 +1,5 @@ - - - - - - - - - - {% import "bootstrap/wtf.html" as wtf %} - - - +{% extends "base.html" %} +{% block main_content %}

Author

@@ -35,5 +24,4 @@
- - +{% endblock main_content %} diff --git a/templates/authors.html b/templates/authors.html index 7eaaa27..bb3e727 100644 --- a/templates/authors.html +++ b/templates/authors.html @@ -1,3 +1,6 @@ +{% extends "base.html" %} + +{% block main_content %}

Authors

@@ -11,3 +14,4 @@ {% endfor %}
+{% endblock main_content %} diff --git a/templates/base.html b/templates/base.html new file mode 100644 index 0000000..5ead55c --- /dev/null +++ b/templates/base.html @@ -0,0 +1,59 @@ + + + + + + + + + + + + {% import "bootstrap/wtf.html" as wtf %} + + + + + + {% block main_content %}{% endblock main_content %} + + + + + + + + +