aboutsummaryrefslogtreecommitdiffstats
path: root/webface
diff options
context:
space:
mode:
Diffstat (limited to 'webface')
-rw-r--r--webface/templates/base.html12
-rw-r--r--webface/templates/home.html12
-rw-r--r--webface/templates/model_view.html12
3 files changed, 18 insertions, 18 deletions
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 @@
+<!DOCTYPE html>
+<html>
+<head>
+<meta charset="UTF-8">
+<title>{{#block title}}modelthing{{/block}}</title>
+</head>
+
+<body>
+{{~#block content}}{{/block~}}
+</body>
+
+</html>
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 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="UTF-8">
-<title>modelthing</title>
-</head>
+{{# partial content}}
-<body>
<a href="/about/">about</a>
-</body>
-</html>
+{{/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 @@
-<!DOCTYPE html>
-<html>
-<head>
-<meta charset="UTF-8">
-<title>modelthing</title>
-</head>
+{{# partial content}}
-<body>
{{model_id}}
-</body>
-</html>
+{{/partial}}
+{{~> base.html~}}