aboutsummaryrefslogtreecommitdiff
path: root/templates/base.tpl
diff options
context:
space:
mode:
authorMitchell Riedstra <mitch@riedstra.dev>2021-08-21 18:28:30 -0400
committerMitchell Riedstra <mitch@riedstra.dev>2021-08-21 18:28:30 -0400
commit47dca324a446bf088164a8e27404c2b8db89ccf5 (patch)
treecd6407bd09ee5acc027fc69a51d98156a6ab7e9a /templates/base.tpl
parentd25b274356451623382d18d2e0e190f407dbcf9f (diff)
downloadpaste-47dca324a446bf088164a8e27404c2b8db89ccf5.tar.gz
paste-47dca324a446bf088164a8e27404c2b8db89ccf5.tar.xz
Turn it into a simple rough draft of an API driven pastebin
Diffstat (limited to 'templates/base.tpl')
-rw-r--r--templates/base.tpl21
1 files changed, 21 insertions, 0 deletions
diff --git a/templates/base.tpl b/templates/base.tpl
new file mode 100644
index 0000000..ec1aeb5
--- /dev/null
+++ b/templates/base.tpl
@@ -0,0 +1,21 @@
+{{define "base"}}
+<!DOCTYPE html>
+<html lang="en">
+<head>
+ <meta charset="UTF-8">
+ <link rel="stylesheet" href="/static/style.css" defer>
+ <title>{{template "title" .}}</title>
+</head>
+
+<nav>
+ <a href="/">Home</a>
+ <div style="display: block; float: right;">
+ </div>
+</nav>
+<body>
+
+{{template "content" .}}
+
+</body>
+</html>
+{{end}}