From 1b927231947233f36e71038684c7d5a6da5cceef Mon Sep 17 00:00:00 2001 From: bnewbold Date: Tue, 25 Oct 2016 22:33:48 -0700 Subject: have webface templates inherit --- webface/templates/base.html | 12 ++++++++++++ webface/templates/home.html | 12 +++--------- webface/templates/model_view.html | 12 +++--------- 3 files changed, 18 insertions(+), 18 deletions(-) create mode 100644 webface/templates/base.html (limited to 'webface/templates') diff --git a/webface/templates/base.html b/webface/templates/base.html new file mode 100644 index 0000000..59060ed --- /dev/null +++ b/webface/templates/base.html @@ -0,0 +1,12 @@ + + + + +{{#block title}}modelthing{{/block}} + + + +{{~#block content}}{{/block~}} + + + diff --git a/webface/templates/home.html b/webface/templates/home.html index 4d351df..6068c99 100644 --- a/webface/templates/home.html +++ b/webface/templates/home.html @@ -1,12 +1,6 @@ - - - - -modelthing - +{{# partial content}} - about - - +{{/partial}} +{{> base.html}} diff --git a/webface/templates/model_view.html b/webface/templates/model_view.html index f3744a7..6e2b251 100644 --- a/webface/templates/model_view.html +++ b/webface/templates/model_view.html @@ -1,12 +1,6 @@ - - - - -modelthing - +{{# partial content}} - {{model_id}} - - +{{/partial}} +{{~> base.html~}} -- cgit v1.2.3